i am trying to develop a test runner in python
Any pointers ? Suggestions ? Opinions ?
I am thinking here is a draft specification:
- Can run individual test methods
- Can run a single Test Class
- Rsult in XML
- Result in HTML
- Dry-run
- Calculate and display time taken by each test case, and overall time.
- Timeout for test cases
- TAP type test results
- Log Levels
- C开发者_开发技巧reate Skeleton test cases
- Coverage
- Be able to run on a remote host (maybe)
- Test Reports
- Command line Help (--help)
Now, where do i start ?
Have you seen nose or py.test? Those projects implement a lot of the features that you describe. It might be easier to write an extension for one of those projects rather than starting from scratch.
There's also green. I wrote it after I got frustrated with nose refusing to accept my pull requests to fix bugs, among other reasons.
精彩评论