-
Notifications
You must be signed in to change notification settings - Fork 5
Settings
Tom Longhurst edited this page Aug 12, 2020
·
3 revisions
There is a property which can be accessed statically:
BDTestSettings.Debug.ShouldSkipWhenStep = true;
This, by default, is set to false. This is your standard test execution.
However, when set to true
your .When(() => ...)
steps will NOT be executed.
The purpose of this is to find which tests aren't behaving as expected.
When this is set to true
, you should expect your tests to fail.
If any tests still pass, this suggests that these tests either aren't set up properly, or aren't properly testing what you think they're testing.
It should go without saying, but this should be used for debug and test checking purposes only. Don't commit this change to your source control.
BDTestSettings.PersistentResultsCompareStartTime = DateTime.Now.Subtract(TimeSpan.FromDays(30));
BDTestSettings.JsonDataFilename = "API-TestData-Json.json";
BDTestSettings.TestTimesReportHtmlFilename = "API-Test-Times.html";
BDTestSettings.FlakinessReportHtmlFilename = "API-Test-Flakiness.html";
BDTestSettings.AllScenariosReportHtmlFilename = "API-Tests-All-Scenarios.html";
BDTestSettings.ScenariosByStoryReportHtmlFilename = "API-Tests-Scenarios-by-Stories.html";
BDTestSettings.ReportFolderName = "TestReports";