Callgraph generator for Python
- Install Poetry
- Make sure Poetry is added to your PATH
- Have Poetry create the virtual environment in the root of the project by setting:
poetry config virtualenvs.in-project true - Install the dependencies with
poetry install
- Run the virtual environment with
poetry shell - Template command to run Jarvis:
python main.py <options> <entry_point_files>.
Example usages:python main.py --package ./. main.pypython main.py --package "../groundTruth/micro-benchmark/snippets/lists/comprehension_if" "../groundTruth/micro-benchmark/snippets/lists/comprehension_if/main.py"(for--packageoption you'd like to use the path to the folder of your entry point file(s))
Change into the directory with: cd groundTruth/micro-benchmark
Run all tests:
python -m unittest discover -p "*_test.py"
Run single test:
python -m unittest args_test.py