pip3 -V
pip3 install pybuilder
pyb --version
# If pyb command is not found, you will have to add pyb to path.
# follow these instructions to add pyb to path.
echo 'export PATH=$PATH:/<path/to/pyb/bin>' >> ~/.bashrc
this is usually /home/
/.local/bin source ~/.bashrc
pyb install_dependencies
# Pyb should work without pyb install_dependencies, but unfortunately it doesnt.
# See details: here https://github.com/pybuilder/pybuilder/issues/727
pyb -v
target\reports\unittest
# To skip integration tests during build use the below command
pyb -x run_integration_tests
# To run only integration tests use the below command
pyb run_integration_tests -x run_unit_tests
pyb clean
pyb clean && rm -rf .pybuilder
pyb analyze
E501 line too long (125 > 120 characters)
F403 'from local_settings import *' used; unable to detect undefined names
F401 'django.contrib.auth.views as auth_views' imported but unused
Support is present in source. .idea
files are avilable when you clone this repo. Just open the folder in pycharm.
~/.vimrc
. Locate the Vim rc file.src/main/python/<module>
to add your python module.src/unittest/
directory mirroring the same module structure in src/main
directory.target
directory.pyb install_dependencies
src/unittest/
directory mirroring the same module structure in src/main
directory.Follow the above two links on details on how to write tests.
src/integrationtest/python/
directory._tests.py
.pyb -v
runs unit tests as part of every build