Component | Build Status | NuGet Package |
---|---|---|
nanoframework.TestFramework | ||
nanoframework.TestFramework (preview) |
nanoFramework TestFramework it's a Unit Test framework dedicated to .NET nanoFramework! It has all the benefits of what you're used to when using Microsoft Test platform for .NET or XUnit or any other!
The framework includes multiple elements that are distributed in a single NuGet package!
nanoFramework.TestFramework
which contains the attributes to decorate your code and theAssert
classes to check that you're code is properly doing what's expected.nanoFramework.UnitTestLauncher
which is the engine launching and managing the Unit Tests.nanoFramework.TestAdapter
which is the Visual Studio Test platform adapter, allowing to have the test integration in Visual Studio.
The integration looks like that:
And the integration will point you up to your code for successful or failed tests:
Simply add the nanoFramework.TestFramework
nuget to your project and you're good to go!
Once you'll build your project, the tests will be automatically discovered:
You can then run all the tests and you'll get the result:
To have more details on usage of the framework, please refer to the detailed documentation here.
.NET nanoFramework Test Framework is supported by VS2019, only. We have no plans to address the shortcomings that prevent it from being used in VS2017. Despite of that you can still run Unit Tests on VS2017 but only from the VS Test console.
This repository contains the source of the core elements. You'll find them in sources
directory. The Visual Studio projects in the root directory will open those elements.
You can find on our samples repo a sample pack with projects demoing how to use the Unit Test Framework.
For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.
Join our Discord community here.
The list of contributors to this project can be found at CONTRIBUTORS.
The .NET nanoFramework Test Framework is licensed under the MIT license.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community. For more information see the .NET Foundation Code of Conduct.
This project is supported by the .NET Foundation.