Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Expectation verification functionality #318
The new functionality is here to provide warnings. This functionality is similar to the meaning of "soft assertions" term.
If the test you are writing is quite complex and you need to do several assertions during the test flow without breaking the test with assertion exception when the first assertion fails, the expectation functionality is for the help.
The usage is similar to Atata's
It doesn't throw an exception on failure, but write the warning assertion result to the log and adds it to
The following methods are added to
public AtataContextBuilder UseWarningReportStrategy(IWarningReportStrategy strategy); public AtataContextBuilder UseNUnitWarningReportStrategy();
When using NUnit, it is available to invoke
NOTE that not all test runners support/recognize NUnit warnings (for example Visual Studio 2019 test explorer does not for now, while 2015 and 2017 do).