Pytest plugin which adds simple --demo
flag, that when paassed to pytest will print test passed! if a test passes
- enable plugin when running pytest via pants
to be able to run something like pytest -vv hello_world/tests/test_greeting.py --demo
run cd src/python && python3 setup.py develop
Run tests, showing how to include extra pytest plugins at runtime (How do we include our local demo plugin?)
./pants test src/python/demo/hello_world/tests:test_greeting --pytest-pytest-plugins=pytest-html==1.22.0
Build local sdist and wheel
./pants setup-py --recursive src/python/demo/lib/demo_plugin:demo_plugin --setup-py-run="sdist bdist_wheel"