Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Wiki article on how to run Unit test please #451

Description

@doingnz

It is necessary to make a debug build of the SDK to run the tests?

I can checkout netmf, run build_sdk and build_solution for STM32F4DISCOVERY using the default build environment. TinyBooter and TinyCLR load into the STM32F4DISCOVERY.

When I then try execute RunTests.exe with no parameters, it throws up errors.
Same errors if I specify command line parameters to direct the test to be via USB to the device.

ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.SPOT.Platform.Test.TestSystem.RunMFTests.get_InstallRoot() in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Pl
atform\Tools\MFTestSystem\TestSystem.cs:line 957
   at Microsoft.SPOT.Platform.Test.TestSystem.RunMFTests.SetResultPaths() in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Pla
tform\Tools\MFTestSystem\TestSystem.cs:line 1316
   at Microsoft.SPOT.Platform.Test.TestSystem.RunMFTests.Run(String[] args) in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\P
latform\Tools\MFTestSystem\TestSystem.cs:line 562
   at Microsoft.SPOT.Platform.Test.TestSystem.RunTests() in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Platform\Tools\MFTes
tSystem\TestSystem.cs:line 125
TestSystem: An uncaught exception was thrown when invoking RunTests: System.NullReferenceException: Object reference not set to an i
nstance of an object.
   at Microsoft.SPOT.Platform.Test.TestSystem.RunMFTests.get_InstallRoot() in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Pl
atform\Tools\MFTestSystem\TestSystem.cs:line 957
   at Microsoft.SPOT.Platform.Test.TestSystem.RunMFTests.SetResultPaths() in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Pla
tform\Tools\MFTestSystem\TestSystem.cs:line 1316
   at Microsoft.SPOT.Platform.Test.TestSystem.RunMFTests.Run(String[] args) in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\P
latform\Tools\MFTestSystem\TestSystem.cs:line 562
   at Microsoft.SPOT.Platform.Test.TestSystem.RunTests() in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Platform\Tools\MFTes
tSystem\TestSystem.cs:line 160
   at Microsoft.SPOT.Platform.Test.TestSystem.Main(String[] args) in C:\Projects\BPplus\netmf-dev\netmf-interpreter\Test\Platform\To
ols\MFTestSystem\TestSystem.cs:line 90

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions