python -m crlf --helppip install -r requirements/requirements.txt -r requirements/developer.txt
python setup.py install
crlf --helpRun all tests
pytest Run the fast tests
pytest -m memory # only in-memory tests Run the slower tests
pytest -m process # only sub-process tests Be incredibly intelligent
pytest --slow-last # run in-memory tests first, then sub-process later-
Should I run
-m memoryor-m processtests?In terms of functionality, both
-m memoryand-m processboth execute the same suite of tests and are utterly similar. However, there are some differences between them:- Tests in
-m memoryexecute much faster (75msin-memory vs.2600msprocess) - Tests in
-m processare able to detect structural errors, like improper imports - Only tests in
-m memorygenerate coverage
- Tests in