Reputation: 55
I know that there is a way for me to pull data out of the NUnit compiler but cannot find the web URLs with the documentation. Essentially it was how to setup a class with getter setters to pull NUnit time run, assert results, name, literally anything I want.
Not sure even if this route would be viable anymore because I am not using SpecRun with NUnit.
My Goal:
Once it hits teardown, it would store all this information into a JSON object that I can send off to a DB somewhere to play with however I please.
Upvotes: 0
Views: 51
Reputation: 386
You can use TestContext/ScenarioContext/FeatureInfo/ScenarioInfo classes to pull information about features and tests at run time. You can capture the start and finish times yourself in the setup and tear down methods.
Upvotes: 1