Skip to content

Commit

Permalink
Merge pull request #325 from Lombiq/issue/OSOE-675
Browse files Browse the repository at this point in the history
OSOE-675: Set stopOnFail flag to true for Lombiq.Tests.UI.Samples
  • Loading branch information
DemeSzabolcs authored Nov 21, 2023
2 parents f6dab68 + a2a7a55 commit 4ddea2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lombiq.Tests.UI.Samples/xunit.runner.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
"parallelizeAssembly": false,
"parallelizeTestCollections": true,
"maxParallelThreads": 3
"maxParallelThreads": 3,
"stopOnFail": true
}
2 changes: 2 additions & 0 deletions Lombiq.Tests.UI/Docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Note that since the tests are xUnit tests you can configure general parameters o
</ItemGroup>
```

Note also that some projects' _xunit.runner.json_ files may include the flag [stopOnFail](https://xunit.net/docs/configuration-files#stopOnFail) set to `true`, which makes further tests stop once a failing test is encountered.

Certain test execution parameters can be configured externally too, the ones retrieved via the `TestConfigurationManager` class. All configuration options are basic key-value pairs and can be provided in one of the two ways:

- Key-value pairs in a _TestConfiguration.json_ file. Note that this file needs to be in the folder where the UI tests execute. By default this is the build output folder of the given test project, i.e. where the projects's DLL is generated (e.g. _bin/Debug/net6.0_).
Expand Down

0 comments on commit 4ddea2d

Please sign in to comment.