Tests
Install tox:
$ pip install tox
Run all tests:
$ tox
Running tests just for one environment:
$ tox -e py3
Running tests from directory:
$ tox -e py3 -- tests.unit.steps.environment
Running the specific test case:
$ tox -e py3 -- tests.unit.steps.environment:TestBehaveEnvironmentSteps
Codestyle
Checking for pep:
$ tox -e flake8
Checking for imports:
$ tox -e isort
If you have any problems with imports just run automatic manual fix:
$ tox -e isort-fix
Documentation
Documentation is generated by http://www.mkdocs.org/
$ pip install -r requirements/docs.txt
$ invoke build-docs
For development:
$ invoke serve-docs
Publishing new releases
Increment version in cli_bdd/__init__.py
. For example:
__version__ = '0.0.2' # from 0.0.1
Run tests.
Commit changes with message "Version 0.0.2"
Publish to pypi:
$ python setup.py publish
Add new tag version for commit:
$ git tag 0.0.2
Push to master with tags:
$ git push origin master --tags