https://github.com/nunit/nunit3-vs-adapter-demo
Demo project used in testing the UI side of the NUnit3 VS adapter
https://github.com/nunit/nunit3-vs-adapter-demo
Last synced: 2 months ago
JSON representation
Demo project used in testing the UI side of the NUnit3 VS adapter
- Host: GitHub
- URL: https://github.com/nunit/nunit3-vs-adapter-demo
- Owner: nunit
- License: mit
- Created: 2017-12-14T16:16:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T10:03:32.000Z (about 6 years ago)
- Last Synced: 2024-10-24T17:53:55.236Z (over 1 year ago)
- Language: C#
- Size: 58.6 KB
- Stars: 1
- Watchers: 7
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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.