emissions-api / sentinel5dl

Sentinel-5(P) Downloader
https://sentinel5dl.emissions-api.org
MIT License
12 stars 8 forks source link

Tests naming, & running tests with nose. #60

Closed baevpetr closed 4 years ago

baevpetr commented 4 years ago

During running tests encountered a problem: 1) Have to manually install nose in virtualenv: 2) Deactivate 3) Activate again 4) Rename test files because nose collector just doesn't see them at all 5) Run tests *If you need to run them from the CLIor in some CI. In pycharm everything runs normally.

*Add nose & collector in setup.py\requirements.txt ?

lkiesow commented 4 years ago

nose is just a package extending Python's unittest package to add more functionality. For sentinel5dl, it's not in the requirements since you do not need to install it as we don't use it. To execute all tests, you can simply run:

% python -m tests

In addition to that, on the CI, we also generate test coverage reports using coverage as an additional, optional external component:

% coverage run --source=sentinel5dl -m tests