Skip to content

Persistent Data

Tom Longhurst edited this page Apr 27, 2020 · 1 revision

Persistent Data - Test Run Comparisons

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.

Test Flakiness

In your output directory after your tests have finished:

BDTest - Report - Test Times Comparison - {timestamp}.html

Test Times Comparison

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.

Clone this wiki locally