Setting Option for marking not runnable tests as failed#524
Conversation
| } | ||
|
|
||
| var testResult = unitTestResult.ToTestResult(test, startTime, endTime, MSTestSettings.CurrentSettings.MapInconclusiveToFailed); | ||
| var testResult = unitTestResult.ToTestResult(test, startTime, endTime, MSTestSettings.CurrentSettings.MapInconclusiveToFailed, MSTestSettings.CurrentSettings.MapNotRunnableToFailed); |
There was a problem hiding this comment.
Instead of passing individual values from settings : MapInconclusiveToFailed and MapNotRunnableToFailed, prefer passing the entire settings. In future, we can extract whichever value will be required.
There was a problem hiding this comment.
Addressed. Passing entire adapter settings now. Modified the tests with these as well.
| /// <param name="mapNotRunnableToFailed">Should map not runnable to failed</param> | ||
| /// <returns>The Test platforms outcome.</returns> | ||
| internal static TestOutcome ToTestOutcome(UnitTestOutcome unitTestOutcome, bool mapInconclusiveToFailed) | ||
| internal static TestOutcome ToTestOutcome(UnitTestOutcome unitTestOutcome, bool mapInconclusiveToFailed, bool mapNotRunnableToFailed) |
There was a problem hiding this comment.
Same here. Pass entire settings.
There was a problem hiding this comment.
Addressed. Passing entire adapter settings now.
| // <MSTestV2> | ||
| // <CaptureTraceOutput>true</CaptureTraceOutput> | ||
| // <MapInconclusiveToFailed>false</MapInconclusiveToFailed> | ||
| // <MapNotRunnableToFailed>false</MapNotRunnableToFailed> |
…ingNotRunnableToFailedOption
|
Tagging @pvlakshm to review this as well. |
|
@PBoraMSFT Can you please review this and see if it's good to check in? |
singhsarab
left a comment
There was a problem hiding this comment.
What about the documentation ?
And should we make this discoverable, is this is marked false, probably a message like, "Unable to run some tests, please set "MapNotRunnableToFailed" in MSTest runsettings to mark these tests as failed." ?
Overall, changes look good.
|
@PBoraMSFT This would need to be updated in the documentation that |
|
@vagisha-nidhi @singhsarab - let's not accumulate doc debt on our repos. When raising PRs, please include doc changes as well - this has been pending since Dec. Can you please log a new GH issue for this and fix it? All testfx docs are right here in the repo. |
|
@PBoraMSFT I had left a comment for it. Not sure if we should be blocking the PRs for that (I vote for blocking the PR)
@vagisha-nidhi Can you please add the docs for this one please. |
|
Updating the docs via microsoft/testfx-docs#71 |
Issue related #499