Skip to content

srebrek/MiniTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


MiniTest

A lightwieight C# unit test framework.

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

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

How it Works

  • 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.

(back to top)

Built With

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.

  • .NET 8.0
  • C#
  • Visual Studio

(back to top)

Getting Started

There is a demonstration project AuthenticationService and its testing project AuthenticationService.Tests included which will be set up in tutorial below.

Installation

  1. Clone the repo
    git clone https://github.com/srebrek/MiniTest.git
  2. Build MiniTestRunner and AuthenticationService.Tests.
  3. Run MiniTestRunner.exe without arguments. (double left click)

(back to top)

Usage

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.

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages