Python/Testing

From Dev Wiki
< Python
Revision as of 02:13, 12 November 2022 by Brodriguez (talk | contribs) (Create initial page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Useful Testing Links


Useful Commands

To automatically clear console before running tests, edit your local bash.rc (or equivalent) file and add the following:

function pytest() {
    clear

    pytest $@
}

This is very useful for removing clutter, so when tests fail, you only see results directly related to the recent failure.

Alternatively, change the function name if you wish to keep the base pytest command, while still adding additional functionality.


Checking Code Coverage