This compensation does not influence our school rankings, resource guides, or other editorially-independent information published on this site. Featured or trusted partner programs and all school search, finder, or match results are for schools that compensate us. This way a new folder will be added which contains all source for the HTML report.Ĭoverage package has a lot of options and it's possible customize it in different ways, so check is an advertising-supported site. If you are interested in doing so, use the following command: coverage run -source=./unittests -m unittest discover -s unittests/ & coverage html In this way, unittests will be run and also a coverage will be displayed.Īnother interesting option is create a HTML report. Note that in this example I'm starting the command from the project_name directory. In order to run all unittests folder you have to type in P圜harm terminal the following command: coverage run -source=./unittests -m unittest discover -s unittests/ & coverage report Suppose that you have a project structure like this one - project_name Then, you can use it directly via P圜harm terminal (be sure that the interpreter is the correct one). You can easily install it using the following command: pip install coverage What is possible to do is using an external Python package that performs the coverage of your test suite. As you have already found, test coverage feature is available only in the professional P圜harm version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |