You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
-----
7
7
8
-
###Welcome to the **nanoFramework** Base Class Library repository!
8
+
# Welcome to the **nanoFramework** Base Class Library repository!
9
9
10
10
## Build status
11
11
@@ -20,6 +20,23 @@
20
20
21
21
The **nanoFramework** Base Class Library is provided in two flavours: with or without support for System.Reflection namespace. The reason for this is that the reflection API adds up a significant size to the DLL and image size. For targets with smaller flash this can be prohibitive.
22
22
23
+
## Unit Test
24
+
25
+
nanoFramework has a dedicated [Unit Test framework](https://github.com/nanoframework/nanoFramework.TestFramework). This repository has Unit Test and you will find all of them under the `Tests`folder. The main solution embed all all the tests as well. You can run them directly from Visual Studio and create new tests. For more information on the [Unit Test Framework](https://docs.nanoframework.net/content/unit-test/index.html).
26
+
27
+
lib-CoreLibrary has specific needs that differ from what you'll find in the documentation:
28
+
29
+
- You need to have th nanoFramework.TestFramework as a nuget package as it will bring the nanoCLR Win32 emulator
30
+
- You need to remove the reference to mscorlib, nanoFramework.TestFramework and nanoFramework.UnitTestLauncher
31
+
- Use project reference instead for all those 3 elements
32
+
33
+
You can then run the test either on a real device, either in the emulator as described in the documentation. You may have to manually flash your device for the mscorlib version to match the one you are building on.
34
+
35
+
**Important**: Any new code checked in this repository will have to:
36
+
37
+
- have a proper test covering for all the methods, properties, events and the possible exceptions,
38
+
- do not break more of the the existing tests meaning, in other words, it should not create more issues than already existing.
39
+
23
40
## Feedback and documentation
24
41
25
42
For documentation, providing feedback, issues and finding out how to contribute please refer to the [Home repo](https://github.com/nanoframework/Home).
0 commit comments