зеркало из
1
0
Форкнуть 0
Demo project used in testing the UI side of the NUnit3 VS adapter
Перейти к файлу
Terje Sandstrøm 9b9e37bed2 Added tests 2020-06-08 12:02:37 +02:00
.vscode Updateing 2020-01-23 18:40:59 +01:00
solutions Added tests 2020-06-08 12:02:37 +02:00
src Added tests 2020-06-08 12:02:37 +02:00
.gitignore Initial commit of Test Demo 2017-12-14 12:05:36 -08:00
CODE_OF_CONDUCT.md Add License and code of conduct 2017-12-17 08:43:39 -08:00
LICENSE.txt Add License and code of conduct 2017-12-17 08:43:39 -08:00
README.md Added terstadapter, few other smaller changes 2019-02-04 19:17:15 +01:00
appveyor.yml Add build scripts for CI 2017-12-19 09:37:01 -08:00
build.cake Use vswhere to find location of vstest.console.exe 2017-12-19 17:02:17 -08:00
build.cmd Add build scripts for CI 2017-12-19 09:37:01 -08:00
build.ps1 Add build scripts for CI 2017-12-19 09:37:01 -08:00

README.md

NUnit3 Test Demo

The Test Demo is primarily intended to be opened in the IDE for the purpose of viewing the visual treatment of various elements. For that reason, there are failures, warnings and ignored tests as well as successful ones.

As a secondary purpose, the demos can be run using command line VSTest, like in a CI, to ensure that the results under VSTest are as expected.

Usage

There are a set of solutions to be found under the folder 'solutions', diveded between 'VS2017' and 'VS2015'. There you find 'CSharpDemo' and 'NUnit3CoreTestDemo'. The first is .net framework 4.5, the latter is .net core 1.1.

Expected results
NUnit3CoreTestDemo

After opening the solution (no build), 66 tesst should be discovered. This comes from the source based discovery process in VS and has nothing to do with the adapter.

Structure

Each demo is represented by a VS solution containing a single project. This allows a single demo to be opened in the IDE.

The project and solution are in the same directory in order to make scripting simpler and all demos are organized at the top level by the version of Visual Studio used to create them.

Source code is common for all demos and is organized by the language supported.

ExpectXxxx Attributes

The Test Demo code includes definition of special attributes like ExpectPass and ExpectFailure for use on the tests. This allows the tester to group the tests by Traits and easily see that the outcome for each group of expectations is what it should be.

C++ Demo

The C++ version of the Demo includes a much smaller number of tests since certain features of NUnit are not directly accessible from C++. More tests may be added as we develop shims for those features.