-
Notifications
You must be signed in to change notification settings - Fork 5
Persistent Data
BDTest allows you to pass it a directory path, to persistently store test data. Why is this useful? It allows us to keep a record of all our test runs, and this allows us to compare test runs.
Set the directory by setting BDTestSettings.PersistentResultsDirectory
[OneTimeSetUp]
public void SetPersistentStorage()
{
BDTestSettings.PersistentResultsDirectory = "C:\\AcceptanceTests";
}
[Test]
public void Test()
{
...
}
If you set these, you will be produced a Test Time Comparison Report and a Test Flakiness Report.
In your output directory after your tests have finished:
BDTest - Report - Test Times Comparison - {timestamp}.html
In your output directory after your tests have finished:
BDTest - Report - Test Times Comparison - {timestamp}.html
If you look in the directory you set, you will see a data dump of all the files.
Test run comparisons will only work for files generated by the current version of BDTest installed. This is in case there is any incompatibilities between data formats between versions.