Closed Noksa closed 6 years ago
Multi-threading inside the test works only in test body, not in [Setup] or [TearDown]. Also it's not working on [OneTimeSetup] and [OneTimeTearDown] at fixture.
If you use multi-threading inside the test, make sure that before leaving test all the threads have done their job of recording the allure steps, otherwise errors may occur. for example:
var task = Task.Run(() =>
{
// some code for record allure steps
});
// some other code
// wait for task before exit test
task.Wait(); // IMPORTANT LINE
Fixed in 2.6
Using multithreading inside test like
Task.Run(() => AllureLifecycle.Instance.Verify.Pass("Pass"))
throws exceptionsVersions