xUnit - Unit testing tool for the .NET Framework

  •        66

xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework. Written by the original inventor of NUnit v2, xUnit.net is the latest technology for unit testing C#, F#, VB.NET and other .NET languages. xUnit.net works with ReSharper, CodeRush, TestDriven.NET and Xamarin. It is part of the .NET Foundation, and operates under their code of conduct.

https://xunit.github.io/
https://github.com/xunit/xunit

Tags
Implementation
License
Platform

   




Related Projects

shunit2 - shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.

  •    Shell

shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is designed to work in a similar manner to JUnit, PyUnit, etc.. If you have ever had the desire to write a unit test for a shell script, shUnit2 can do the job. shUnit2 was originally developed to provide a consistent testing solution for log4sh, a shell based logging framework similar to log4j. During the development of that product, a repeated problem of having things work just fine under one shell (/bin/bash on Linux to be specific), and then not working under another shell (/bin/sh on Solaris) kept coming up. Although several simple tests were run, they were not adequate and did not catch some corner cases. The decision was finally made to write a proper unit test framework after multiple brown-bag releases were made. Research was done to look for an existing product that met the testing requirements, but no adequate product was found.

MyTested.AspNetCore.Mvc - Fluent testing framework for ASP.NET Core MVC.

  •    CSharp

MyTested.AspNetCore.Mvc is a unit testing library providing an easy fluent interface to test the ASP.NET Core MVC framework. It is testing framework agnostic so that you can combine it with a test runner of your choice (e.g. xUnit, NUnit, etc.). It is strongly advised to start with the tutorial in order to get familiar with MyTested.AspNetCore.Mvc. Additionally, you may see the testing guide or the API reference for a full list of available features. MyTested.AspNetCore.Mvc is 100% covered by more than 1800 unit tests and should work correctly. Almost all items in the issues page are expected future features and enhancements.

MyTested.WebApi - Fluent testing framework for ASP.NET Web API 2.

  •    CSharp

MyTested.WebApi is a unit testing library providing easy fluent interface to test the ASP.NET Web API 2 framework. It is testing framework agnostic, so you can combine it with a test runner of your choice (e.g. NUnit, xUnit, etc.). Inspired by ChaiJS. Please see the documentation for full list of available features. Everything listed in the documentation is 100% covered by more than 800 unit tests and should work correctly. Almost all items in the issues page are expected future features and enhancements.

atoum - The modern, simple and intuitive PHP unit testing framework.

  •    PHP

To accomplish that, it massively uses capabilities provided by PHP, to give the developer a whole new way of writing unit tests. Therefore, it can be installed and integrated into an existing project extremely easily, since it is only a single PHAR archive, which is the one and only entry point for the developer. Also, thanks to its fluent interface, it allows for writing unit tests in a fashion close to natural language. It also makes it easier to implement stubbing within tests, thanks to intelligent uses of anonymous functions and closures. atoum natively, and by default, performs the execution of each unit test within a separate PHP process, to warrant isolation. Of course, it can be used seamlessly for continuous integration, and given its design, it can be made to cope with specific needs extremely easily. atoum also accomplishes all of this without affecting performance, since it has been developed to boast a reduced memory footprint while allowing for hastened test execution. It can also generate unit test execution reports in the Xunit format, which makes it compatible with continuous integration tools such as Jenkins. atoum also generates code coverage reports, in order to make it possible to supervise unit tests. Finally, even though it is developed mainly on UNIX, it can also work on Windows. If Xdebug or equivalent gets displayed, then the module is properly installed.

JUnit - A programmer-oriented testing framework for Java

  •    Java

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.


fluentassertions - Fluent Assertions is a set of

  •    CSharp

Fluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style test. We currently use it in all our internal and client projects, and it is used in many open-source projects. It runs on .NET 4.0, 4.5, 4.6, CoreClr, .NET Native, Windows 8.1, Silverlight 5, Windows Phone 8.0 and UWP. It supports the unit test frameworks MSTest, MSTest2, NUnit, XUnit, MBUnit, Gallio, NSpec and MSpec.

tsUnit - TypeScript Unit Testing Framework

  •    Javascript

tsUnit is a unit testing framework for TypeScript, written in TypeScript. It allows you to encapsulate your test functions in classes and modules.

cfix: unit testing framework for C/C++

  •    C

cfix is a xUnit unit testing framework for C and C++, specialized for Win32 and NT kernel mode. The aim of the framework is to make the development of test suites as easy as possible while fully exploiting the services provided by Windows.

NBench - Performance benchmarking and testing framework for .NET applications

  •    CSharp

Cross-platform performance benchmarking and testing framework for .NET applications. NBench is designed for .NET developers who need to care about performance and want the ability to "unit test" their application's performance just like XUnit or NUnit tests their application code.

CxxTest

  •    C++

CxxTest is a unit testing framework for C++ that is similar in spirit to JUnit, CppUnit, and xUnit. CxxTest is easy to use because it does not require precompiling a CxxTest testing library, it employs no advanced features of C++ (e.g. RTTI) and it supports a very flexible form of test discovery.

xUnitForms

  •    

xUnitForms is a xUnit extension for unit and acceptance testing of Windows Forms applications. It makes you easier for writing automated tests for your Windows Forms classes. It's developed in C# 3.5, xUnit 1.1 and referred to NUnitForms.

TclUnit

  •    Perl

The TclUnit project is an implementation of the xUnit unit test framework, in Tcl. It provides a framework for organizing tests, plus utilities and extensions to facilitate unit testing of programs and libraries through the Tcl programming language.

NinjaTurtles - .NET/Mono mutation testing

  •    

NinjaTurtles adds the power of mutation testing to your usual .NET/Mono unit test framework (NUnit, xUnit, MSTest, Gallio-supported frameworks such as MbUnit).

JSTest.NET - Browserless JavaScript Unit Test Runner

  •    DotNet

JSTest.NET enables JavaScript unit tests to be run directly in the test framework of your choice (MSTest, NUnit, xUnit, etc) and all without the need for a web browser. JSTest.NET utilizes the Windows Script Host (CScript) to run fast, fully debuggable JavaScript unit tests!

SPUnit

  •    

SPUnit is an application of the popular xUnit framework concept to enable unit testing of SQL Server stored procedures. The project includes a set of framework stored procedures that provide similar fixture and assertion capabilitieis to the other xUnit f

Fluent Assertions

  •    

Fluent interface for writing .NET unit test assertions with more clarity than the traditional assertion syntax such as offered by MSTest, NUnit or XUnit.

PRUnit

  •    Java

Unit test framework for PegaRULES Process Commander applications. PRUnit is based on the xUnit family of testing frameworks. PRUnit is downloaded as a Zip file that can be uploaded to your PRPC system and loaded into the rule base.

Cake - (C# Make) is a cross platform build automation system

  •    CSharp

Cake (C# Make) is a build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages. Cake is built on top of the Roslyn compiler which enables you to write your build scripts in C#. It supports the most common tools used during builds such as MSBuild, MSTest, xUnit, NUnit, NuGet, ILMerge, WiX and SignTool out of the box.

CUnit - A Unit Testing Framework for C

  •    C

CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. CUnit is built as a static library which is linked with the user's testing code. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types.