New functionality (combine reports etc) by JamesMTSloan · Pull Request #32 · oldani/HtmlTestRunner

and others added 5 commits

March 16, 2018 15:09
- support for combining reports into single report (combine_reports kwarg)
- support for test cases with underscores in name
- optional timestamping of filenames (add_timestamp kwarg)
- optional automatic opening of generated reports in browser tab (paths to reports are returned from test result) (open_in_browser kwarg)
- support for optional user variables to be passed to jinja2 template (template_args kwarg)
- added tracebacks to reports
- added stdout to reports (so tests that pass can also be expanded
- print relative paths to generated reports
- made default output directory the current working directory so there are now no required args

also:
- updated and adjusted readme
- changed use of deprecated _TextTestResult -> TextTestResult
- changed format of template slightly
…oid clashes from duplicate names)

- simplified test method names
…f a string to allow the user to customise their template more easily.

also some other small tweaks.

@JamesMTSloan

@JamesMTSloan

reduced prepended paths to testcase names except for when common testcase names need to be distinguished

@JamesMTSloan

@JamesMTSloan

…ting test suites, including case where name collision between similarly named test cases is handled. combined reports and separate reports are shown.

@JamesMTSloan

@JamesMTSloan

added support for skipped tests skip reasons
changed template to support subtests in sub-tables
fixed bug where non-combined tests had summaries with details from all tests
tweaked format of HTML has that info buttons line up better

This was referenced

Aug 30, 2018

@JamesMTSloan

…a stub in the report. this needed some rather ugly filtering but unittest seems to insist on calling addSuccess() in this case

removed support for std.out in subtests for now as this was being accumulated across subtests

@oldani oldani changed the base branch from master to feature/combined_report

September 19, 2018 14:26

@JamesMTSloan

@michaelhudelson @JamesMTSloan

#2)

* Updated results.py to use the copy library so that it can be run using Python 2.7

* changed import order

oldani added a commit that referenced this pull request

Mar 15, 2019
* Fixed Template Wording

* added following functionality:
- support for combining reports into single report (combine_reports kwarg)
- support for test cases with underscores in name
- optional timestamping of filenames (add_timestamp kwarg)
- optional automatic opening of generated reports in browser tab (paths to reports are returned from test result) (open_in_browser kwarg)
- support for optional user variables to be passed to jinja2 template (template_args kwarg)
- added tracebacks to reports
- added stdout to reports (so tests that pass can also be expanded
- print relative paths to generated reports
- made default output directory the current working directory so there are now no required args

also:
- updated and adjusted readme
- changed use of deprecated _TextTestResult -> TextTestResult
- changed format of template slightly

* - expanded test case names to include full path to classes (should avoid clashes from duplicate names)
- simplified test method names

* updated docstrings and deleted unused method

* added check for template_args to be dict-like

* changed how summaries are passed to templates: using a dict instead of a string to allow the user to customise their template more easily.
also some other small tweaks.

* updated readme to reflect changes to template variables

* added optional report naming
reduced prepended paths to testcase names except for when common testcase names need to be distinguished

* added report_name usage to README

* added a couple of tests showing use with unittest.main() and constructing test suites, including case where name collision between similarly named test cases is handled. combined reports and separate reports are shown.

* re-imposed alphabetical ordering of unittest in how tests appear in reports.

* added support for subtests
added support for skipped tests skip reasons
changed template to support subtests in sub-tables
fixed bug where non-combined tests had summaries with details from all tests
tweaked format of HTML has that info buttons line up better

* fixed bug where subtests that all passed were duplicated with an extra stub in the report. this needed some rather ugly filtering but unittest seems to insist on calling addSuccess() in this case
removed support for std.out in subtests for now as this was being accumulated across subtests

* updated authors list

* Updated results.py to use the copy library so that it can be run usin… (#2)

* Updated results.py to use the copy library so that it can be run using Python 2.7

* changed import order