openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 68 forks source link

Enable verbose testing #382

Closed politas closed 3 years ago

politas commented 3 years ago

Change to core.testing to allow a choice to get more detailed testing results, using a temporary file to store test results.

Calling core.testing.run_test() with 'verbosity=` as a parameter will now open a temporary file, redirect the TextTestRunner output to it, and then feed the test results to the log. If no verbosity is supplied, the result is unchanged.

politas commented 3 years ago

Sorry, meant to PR to CrazyIvan's ivans-updates branch