Table of Contents
A lightweight, minimalistic unit testing framework for C# applications. MiniTestRunner provides a simple and effective way to define, execute, and report unit tests without relying on third-party test frameworks like NUnit or xUnit.
Features:
- Lightweight and easy to integrate into any C# project
- Automatically discovers and runs test methods
- Simple assertion mechanism for validating test results
- Clear and structured test output
- Supports multiple test cases in a single run
- Can be expanded with custom test attributes and reporting
- The framework scans assemblies for test methods based on attributes like
[Testmethod]. - Each test method runs independently, capturing results and failures.
- The test runner provides a summary report of passed and failed tests.
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
There is a demonstration project AuthenticationService and its testing project AuthenticationService.Tests included which will be set up in tutorial below.
- Clone the repo
git clone https://github.com/srebrek/MiniTest.git
- Build
MiniTestRunnerandAuthenticationService.Tests. - Run
MiniTestRunner.exewithout arguments. (double left click)
In order to test your own projects, simply create a test project with a reference to the tested project, create a class with TestClass attribute. All methods inside TestClass with TestMethod attribute will be run by MiniTestRunner.
More information included in documentation.
Distributed under the MIT License. See LICENSE for more information.