https://github.com/jthelin/testharness
A simple wrapper application for running single Visual Studio test methods directly in .exe for easier debugger stepping.
https://github.com/jthelin/testharness
dotnet testharness testing
Last synced: about 2 months ago
JSON representation
A simple wrapper application for running single Visual Studio test methods directly in .exe for easier debugger stepping.
- Host: GitHub
- URL: https://github.com/jthelin/testharness
- Owner: jthelin
- License: apache-2.0
- Created: 2016-01-25T20:44:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-22T23:16:01.000Z (over 6 years ago)
- Last Synced: 2025-03-20T11:14:15.478Z (over 1 year ago)
- Topics: dotnet, testharness, testing
- Language: C#
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TestHarness
A simple wrapper application for running single Visual Studio test methods directly in .exe for easier debugger single-stepping.
[https://github.com/jthelin/TestHarness](https://github.com/jthelin/TestHarness)
## Components
The `DebugTestHarness` project contains some program code to set up a test class in roughly the same way that the MsTest framework would, and then runs the specified test case method.
Callbacks steps made to the test class in order are:
1. `ClassInitialize` method called. (static)
2. Class constructor called.
3. Set `TestContext` property to an instance of `MockTestContext`
4. `TestInitisalize` method called.
5. Run specific test method (in this example, `TestMethod1`)
6. `TestCleanup` method called.
7. Finally: `ClassCleanup` method called. (static)
## License
Apache 2.0