Closed bellrichm closed 1 year ago
pytest seems more widely used and it looks like I can ‘drop’ it in. Just need to figure out how to get comparable output.
nosetest | pytest | notes |
---|---|---|
--cover-html | NA | Produce HTML coverage information |
--with-html | NA | Enable plugin HtmlOutput: Output test results as pretty html. [NOSE_WITH_HTML] |
--html-file | NA | Path to html file to store the report in. Default is nosetests.html in the working directory |
--cover-html-dir | --cov-report html | Produce HTML coverage information in dir |
--exe | NA | Look for tests in python modules that are executable |
--exclude | NA | Don’t run tests that match regular expression [NOSE_EXCLUDE] |
--cover-package | --cov | Restrict coverage output to selected packages [NOSE_COVER_PACKAGE] |
--with-xunit | --junitxml | Enable plugin Xunit: This plugin provides test results in the standard XUnit XML format. |
--with-coverage | --cov | Enable plugin Coverage |
--cover-branches | --cov-branch | Include branch coverage in coverage report [NOSE_COVER_BRANCHES] |
--cover-xml. | --cov-report xml | Produce XML coverage information |
--cover-xml-file | --cov-report xml | Produce XML coverage information in file. |
--xunit-file | --junitxml | Path to xml file to store the xunit report in. Default is nosetests.xml in the working directory |
--logging-level | --logging-level | Set the log level to capture |
--verbosity | --verbosity | Set the verbosity |
Nose is no longer supported Look at nose2 or pytest.