All Projects β†’ nunit β†’ nunit.analyzers

nunit / nunit.analyzers

Licence: MIT license
Roslyn analyzers for writing unit tests with NUnit

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to nunit.analyzers

Cake
🍰 Cake (C# Make) is a cross platform build automation system.
Stars: ✭ 3,154 (+4471.01%)
Mutual labels:  nunit
Aspnetcore Tests Sample
A project to help demonstrate how to do unit, integration and acceptance tests with an web api project using ASP.NET Core and Angular 7 front end.
Stars: ✭ 40 (-42.03%)
Mutual labels:  nunit
Nunit
NUnit 3 Framework
Stars: ✭ 2,131 (+2988.41%)
Mutual labels:  nunit
List Of Testing Tools And Frameworks For .net
βœ… List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET
Stars: ✭ 303 (+339.13%)
Mutual labels:  nunit
Nunit cshaprp cheatsheet
Example implementations of each attribute available in Nunit2 unit Testing Framework using C# .NET.
Stars: ✭ 14 (-79.71%)
Mutual labels:  nunit
Meissa
Cross-platform Distributed Test Runner. Executes tests in parallel, time balanced on multiple machines.
Stars: ✭ 66 (-4.35%)
Mutual labels:  nunit
nunit.testlogger
NUnit logger for vstest platform
Stars: ✭ 48 (-30.43%)
Mutual labels:  nunit
allure-nunit
Archived - Allure adapter for NUnit framework.
Stars: ✭ 45 (-34.78%)
Mutual labels:  nunit
Ghpr.nunit
Adapter for NUnit 3 (generate HTML report for NUnit 3)
Stars: ✭ 33 (-52.17%)
Mutual labels:  nunit
Nunit Console
NUnit Console runner and test engine
Stars: ✭ 168 (+143.48%)
Mutual labels:  nunit
Fsunit
FsUnit makes unit-testing with F# more enjoyable. It adds a special syntax to your favorite .NET testing framework.
Stars: ✭ 308 (+346.38%)
Mutual labels:  nunit
Tdd Katas
This repository contains Hands on Test Driven Development Katas (C#)
Stars: ✭ 620 (+798.55%)
Mutual labels:  nunit
Csharp.webdriver
Browser test automation using Selenium WebDriver in C#
Stars: ✭ 115 (+66.67%)
Mutual labels:  nunit
Mockqueryable
Moking Entity Framework Core operations such ToListAsync, FirstOrDefaultAsync etc
Stars: ✭ 281 (+307.25%)
Mutual labels:  nunit
Lightbdd
BDD framework allowing to create easy to read and maintain tests.
Stars: ✭ 195 (+182.61%)
Mutual labels:  nunit
difido-reports
This project aims to provide a generic implementation for HTML test reports.
Stars: ✭ 38 (-44.93%)
Mutual labels:  nunit
Guitestsharp
An extensible multiplatform framework to test GUIs in WinForms, WPF, GtkSharp and Xamarin.Mac.
Stars: ✭ 40 (-42.03%)
Mutual labels:  nunit
bUnit
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
Stars: ✭ 857 (+1142.03%)
Mutual labels:  nunit
Ocaramba
C# Framework to automate tests using Selenium WebDriver
Stars: ✭ 234 (+239.13%)
Mutual labels:  nunit
Specflow
#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
Stars: ✭ 1,827 (+2547.83%)
Mutual labels:  nunit

NUnit Analyzers

Build status GitHub Actions build status NuGet Version and Downloads count MyGet Feed

This is a suite of analyzers that target the NUnit testing framework. Right now, the code is separate from the NUnit framework, so if you want to try out the analyzers you'll need to download the analyzers separately as a nuget package. In the future the analyzers may be added as part of the NUnit framework package but that hasn't been done yet.

Download

The latest stable release of the NUnit Analyzers is available on NuGet or can be downloaded from GitHub. Note that for Visual Studio 2017 one must use versions below 3.0. Version 3.0 and upwards require Visual Studio 2019, these versions also enables supression of compiler errors such as errors arising from nullable reference types.

Prerelease nuget packages can be found on MyGet. Please try out the package and report bugs and feature requests.

Analyzers

The full list of analyzers can be found in the documentation.

Below we give two examples of analyzers. One will look for methods with the [TestCase] attribute and makes sure the argument values are correct for the types of the method parameters along with the ExpectedResult value if it is provided.

testcase analyzers

The other analyzer looks for classic model assertions (e.g. Assert.AreEqual(), Assert.IsTrue(), etc.). This analyzer contains a fixer that can translate the classic model assertions into constraint model assertions (Assert.That()).

classic model assertions analyzers

Which version works with Unity Test Framework

If your Unity project is made by Unity under 2021.2, then use NUnit.Analyzers v2.x.

If your Unity project is made by Unity 2021.2 or later, then use NUnit.Analyzers v3.3 (v3.4 or later of the analyzers does not work with Unity).

You should use an analyzer built with the same version of Microsoft.CodeAnalysis.CSharp as the one embedded in the Unity Editor.

License

NUnit analyzers are Open Source software and released under the MIT license, which allow the use of the analyzers in free and commercial applications and libraries without restrictions.

Contributing

There are several ways to contribute to this project. One can try things out, report bugs, propose improvements and new functionality, work on issues (especially the issues marked with the labels help wanted and Good First Issue), and in general join in the conversations. See Contributing for more information.

This project has adopted the Code of Conduct from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4. See the Code of Conduct for more information.

Contributors

NUnit.Analyzers was created by Jason Bock. A complete list of contributors can be found on the GitHub contributors page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].