Component | Build Status | NuGet Package |
---|---|---|
nanoframework.TestFramework |
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 in Visual Studio versions 2022 and 2019, only. Visual Studio 2017 is not fully supported. Unit Tests can be run 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 project is 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.