Skip to content

Hot-Pepper tool to create automatically Monkey-based scenarios, ranked based code smells counting

Notifications You must be signed in to change notification settings

SOMCA/ghost-pepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

ghost-pepper

Ghost Pepper is a tool to get automatically Monkey-based scenarios, ranked based code smells counting

Requirements

Ghost Pepper uses Python3.5 and Simiasque to work.
You have to install Simiasque on your phone for using Ghost-Pepper.

Ghost Pepper works on a verbose application, which can save in a log message each time a code smell is called.
Each log has to been formatted like this: "SMELL: MY.CODE.SMELL", as a debug log message.
If you don't have this verbose application, please to use Paprika, a Java application which can create a verbose APK to count each code smells called in the app.
You can request an access of Paprika sending an e-mail to Geoffrey Hecht.

How to use it?

  1. Connect your phone to your computer.
  2. Allow developer options in your phone.
  3. Launch the program, sip a cocktail and get the list of monkey seeds that run a lot of code smells!

Arguments

usage: ghost_pepper.py [-h] [-e EVENTS] [-i ITERATIONS] [-o] -p PACKAGE
                       [-t THROTTLE] [-v]

Tool to create automatically Monkey-based scenarios, ranked based code smells
counting

optional arguments:
  -h, --help            show this help message and exit
  -e EVENTS, --events EVENTS
                        Number of events to process
  -i ITERATIONS, --iterations ITERATIONS
                        Number of iterations
  -o, --only_one        Return only one seed - the greatest number of code
                        smells called
  -p PACKAGE, --package PACKAGE
                        The Android package to run
  -t THROTTLE, --throttle THROTTLE
                        Delay between each event
  -v, --verbose         Verbose mod for top seeds

Credits

SOMCA - Associate research team between Inria and UQÀM.

License

GNU AFFERO GENERAL PUBLIC LICENSE (Version 3)

About

Hot-Pepper tool to create automatically Monkey-based scenarios, ranked based code smells counting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages