We have nose tests that run on a teamcity build agent. Some tests are slow and are therefore not run on each pull request. The problem is that they are not being reported as skipped. They simply don't show up in the teamcity report.
Slow tests are marked with
@attr('nightly')
The ordinary tests are run like this:
nosetests path/to/tests --nocapture --nologcapture -v -a '!nightly'
I can list the nightly tests without running them like this:
nosetests path/to/tests --nocapture --nologcapture -v -a 'nightly' --collect-only
But that reports them as being run successfully.
How can I make the tests get reported to teamcity as being skipped?
--- Update ---
I have been poking around and found that the section I would like to change is in http://nose.readthedocs.io/en/latest/plugins/collect.html?highlight=addSuccess. I would like to change it to addSkipped
but it is deprecated so it looks like I should use addError
with the error class from http://nose.readthedocs.io/en/latest/plugins/skip.html.
How would I go about adding these changes? It seems nosetests are not actively maintained anymore...