Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
bcb4be2
initial commit after clean up
Ellerbach Feb 23, 2021
f9160b3
adjusting to prepare for nuget
Ellerbach Feb 23, 2021
184b328
Remove nuspec projects
josesimoes Feb 23, 2021
4ffae86
Add LICENSE
josesimoes Feb 23, 2021
5538449
Revert Microsoft.TestPlatform.ObjectModel to last stable version
josesimoes Feb 23, 2021
fb40b7e
Add config files to sign NuGet
josesimoes Feb 23, 2021
32996a7
Add Nuget assets
josesimoes Feb 23, 2021
375b961
Add nuspec
josesimoes Feb 23, 2021
f17794e
Add reference to nanoFramework.nanoCLR.Win32
josesimoes Feb 23, 2021
8fb9a24
Add Nuget config
josesimoes Feb 23, 2021
f6fc26e
Remove nuspec projects
josesimoes Feb 23, 2021
8e96f9b
Initial Azure Pipelines yaml
josesimoes Feb 23, 2021
6decc13
Install nbgv
josesimoes Feb 23, 2021
1a61199
Work on Azure pipeline yaml
josesimoes Feb 23, 2021
a19bb21
Add separate solutions for nano projects and test adapter
josesimoes Feb 23, 2021
98e4e22
Update Azure pipeline
josesimoes Feb 23, 2021
16628c6
Tweak nfprojs
josesimoes Feb 23, 2021
44d7a1a
Update nuget installer task
josesimoes Feb 23, 2021
3541a96
Move build.props
josesimoes Feb 24, 2021
b275860
Fix signing package name and release
josesimoes Feb 24, 2021
cf7f9ad
Fix nuget package name
josesimoes Feb 24, 2021
aaea9c2
Update nbgv version config
josesimoes Feb 24, 2021
0058633
Update nuspec
josesimoes Feb 24, 2021
d174687
Remove git release from pipeline
josesimoes Feb 24, 2021
0ad4e2f
adding features, fixing paths
Ellerbach Feb 24, 2021
89cc2ee
Merge branch 'new_test_platform' of https://github.com/nanoframework/…
Ellerbach Feb 24, 2021
eda7da6
Update version config
josesimoes Feb 24, 2021
09405a9
Move shared code to shared project
josesimoes Feb 24, 2021
66bed69
FIx references to mscorlib
josesimoes Feb 24, 2021
17b0543
Adjust version config
josesimoes Feb 24, 2021
c5d9332
Add new setting for logging level
josesimoes Feb 25, 2021
de31f66
Fix name for test adapter setting group
josesimoes Feb 25, 2021
efc1201
Add logging to Executor
josesimoes Feb 25, 2021
100339a
Remove ConsoleApp1 from POC solution
josesimoes Feb 25, 2021
faccea8
Rename executor name
josesimoes Feb 25, 2021
b6e8b71
Fix settings provider and parsing
josesimoes Feb 25, 2021
dc2ef69
Add LogMessenger
josesimoes Feb 25, 2021
644766a
Add nano.runsettings to projec file
josesimoes Feb 25, 2021
dfe1865
Update path for nanoCLR in test runner
josesimoes Feb 25, 2021
78b2035
Rename stuff in RunTest to match with assemblies being loaded
josesimoes Feb 25, 2021
c7affe6
Improvements in nuspec
josesimoes Feb 25, 2021
2567e63
Clean up
josesimoes Feb 25, 2021
bb34a9b
Rework nuspec
josesimoes Feb 25, 2021
07f53dd
Update NuGet
josesimoes Feb 25, 2021
bf670cb
Include runsettings in project file
josesimoes Feb 25, 2021
5253165
Remove unused file
josesimoes Feb 25, 2021
cd7b2fc
Adjusting headers, adding comments, adding cancel
Ellerbach Feb 25, 2021
20408a3
Add signing key to projects
josesimoes Feb 25, 2021
4f94d60
adding simple doc
Ellerbach Feb 25, 2021
b27ae63
Change assembly name for test projects
josesimoes Feb 25, 2021
9cbe1cc
Add runsettings to nuget
josesimoes Feb 25, 2021
8b969e5
Minor changes in README
josesimoes Feb 25, 2021
2839e3d
Update POC project
josesimoes Feb 25, 2021
03556d6
Remove mention to POC
josesimoes Feb 25, 2021
0b750ae
Work CI-CD
josesimoes Feb 25, 2021
9758c13
Update Azure Pipeline name
josesimoes Feb 25, 2021
9a9fa8d
Work CI-CD
josesimoes Feb 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) .NET Foundation and Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Azure Artifacts nanoFramework dev" value="https://pkgs.dev.azure.com/nanoframework/feed/_packaging/sandbox/nuget/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
80 changes: 79 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,80 @@
# nanoFramework.TestPlatform
nanoFramework Unit Test platform
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoframework.TestFramework.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoframework.TestFramework/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)

![nanoFramework logo](https://github.com/nanoframework/Home/blob/master/resources/logo/nanoFramework-repo-logo.png)

-----

# Welcome to the **nanoFramework** Unit Test Framework repository!

## Build status

| Component | Build Status | NuGet Package |
|:-|---|---|
| nanoframework.TestFramework | [![Build Status](https://dev.azure.com/nanoframework/nanoframework.TestFramework/_apis/build/status/nanoFramework.TestFramework?repoName=nanoframework%2FnanoFramework.TestFramework&branchName=master)](https://dev.azure.com/nanoframework/nanoframework.TestFramework/_build/latest?definitionId=67&repoName=nanoframework%2FnanoFramework.TestFramework&branchName=master) | [![NuGet](https://img.shields.io/nuget/v/nanoframework.TestFramework.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoframework.TestFramework/) |
| nanoframework.TestFramework (preview) | [![Build Status](https://dev.azure.com/nanoframework/nanoframework.TestFramework/_apis/build/status/nanoFramework.TestFramework?repoName=nanoframework%2FnanoFramework.TestFramework&branchName=develop)](https://dev.azure.com/nanoframework/nanoframework.TestFramework/_build/latest?definitionId=67&repoName=nanoframework%2FnanoFramework.TestFramework&branchName=develop) | [![](https://badgen.net/badge/NuGet/preview/D7B023?icon=https://simpleicons.now.sh/azuredevops/fff)](https://dev.azure.com/nanoframework/feed/_packaging?_a=package&feed=sandbox&package=nanoframework.TestFramework&protocolType=NuGet&view=overview) |

## What is the .NET nanoFramework Test Framework

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 the `Assert` 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:

![test integration](assets/test-integration-vs.jpg)

And the integration will point you up to your code for successful or failed tests:

![test integration failed](assets/test-integration-vs-failed.jpg)

## Usage of .NET nanoFramework Test Framework

Simply add the `nanoFramework.TestFramework` nuget to your project and you're good to go!

![test nuget](assets/test-nuget-test-framework.jpg)

Once you'll build your project, the tests will be automatically discovered:

![test discovered](assets/test-discovered.jpg)

You can then run all the tests and you'll get the result:

![test success](assets/test-success.jpg)

To have more details on usage of the framework, please refer to the detailed [documentation here](https://docs.nanoframework.net/).

## What you'll find in this repository

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.

## Sample pack

You can find on our samples repo a [sample pack](https://github.com/nanoframework/Samples/tree/master/samples/UnitTest) with projects demoing how to use the Unit Test Framework.

## Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).

Join our Discord community [here](https://discord.gg/gCyBu8T).

## Credits

The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).

## License

The .NET **nanoFramework** Test Framework is licensed under the [MIT license](LICENSE.md).

## Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
For more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).

### .NET Foundation

This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
Binary file added assets/nf-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test-discovered.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test-integration-vs-failed.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test-integration-vs.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test-nuget-test-framework.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/test-success.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading