IntelliTect / TestTools

A collection of tools for aiding in test automation
MIT License
10 stars 7 forks source link

Log test case exceptions instead of just throwing #64

Open PandaMagnus opened 4 years ago

PandaMagnus commented 4 years ago

Currently we log that a test failed, but don't log the exception. This is problematic if you're running the tests in an environment where the exception isn't captured and logged (E.G. AzureDevops will automatically log exceptions to a build or release log.) Might be worth it to log the exception before throwing.

Logging to-do's:

PandaMagnus commented 4 years ago

Also need to update how test block inputs and outputs are logged. Noticed at a client that one is as Info one is as Debug. Probably want most or all "automatic" logging to go to Debug outside of errors and maybe the test case name.

PandaMagnus commented 4 years ago

Also need better messaging around when an item can't be serialized to JSON. E.G. if we don't have a [JsonIgnore] property on a property that mucks around with Selenium before the site is launched, it will fail with a selenium exception. Need to gracefully log instead.