简体   繁体   中英

Python Test Loader using Nose

I am a beginner at Python and the Nose framework. What I need to do is to write a Test Loader that will load tests using Nose.The results of the test has to be generated as a HTML report. Can someone give me a description about how to do this. I want to know what are the python test case files to write, what are the libraries to include. Please give me a start on this.

Thanks

I believe that the capability that you describe already exists in Nose.

  • Nose discovers and loads tests.
  • Nose can print output in a variety of formats, including XML (with a plug-in).

If you install Nose and the NoseXML or NoseXMLUnit plugin, I believe that you should have what you need. If you truly need HTML instead of XML, use one of those plugins as a base to write your own. (And make sure to add it to the list of third-party plugins ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM