Skip to content

Commit

Permalink
Mark tests requiring hardware as system tests (ni#53)
Browse files Browse the repository at this point in the history
Separate system and unit tests to correctly execute on PharLap
  • Loading branch information
Karl-G1 authored Jan 8, 2020
1 parent 5eaa2b9 commit 9e8b39e
Show file tree
Hide file tree
Showing 20 changed files with 201 additions and 114 deletions.
12 changes: 9 additions & 3 deletions VeriStand Test Utilities.lvproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@
<Item Name="Tests" Type="Folder">
<Item Name="Unit" Type="Folder">
<Item Name="Assets" Type="Folder">
<Item Name="BenchmarkConfiguration.ini" Type="Document" URL="../VeriStandTestCase/Tests/Unit/Assets/BenchmarkConfiguration.ini"/>
<Item Name="DummyProperty.ini" Type="Document" URL="../VeriStandTestCase/Tests/Unit/Assets/DummyProperty.ini"/>
<Item Name="MostlyEmpty.nivssdf" Type="Document" URL="../VeriStandTestCase/Tests/Unit/Assets/MostlyEmpty.nivssdf"/>
</Item>
<Item Name="VeriStandTestCaseTests.lvclass" Type="LVClass" URL="../VeriStandTestCase/Tests/Unit/VeriStandTestCaseTests.lvclass"/>
<Item Name="VeriStandTestCaseUnitTests.lvclass" Type="LVClass" URL="../VeriStandTestCase/Tests/Unit/VeriStandTestCaseUnitTests.lvclass"/>
</Item>
<Item Name="System" Type="Folder">
<Item Name="Assets" Type="Folder">
<Item Name="BenchmarkConfiguration.ini" Type="Document" URL="../VeriStandTestCase/Tests/System/Assets/BenchmarkConfiguration.ini"/>
<Item Name="DummyProperty.ini" Type="Document" URL="../VeriStandTestCase/Tests/System/Assets/DummyProperty.ini"/>
<Item Name="MostlyEmpty.nivssdf" Type="Document" URL="../VeriStandTestCase/Tests/System/Assets/MostlyEmpty.nivssdf"/>
</Item>
<Item Name="VeriStandTestCaseSystemTests.lvclass" Type="LVClass" URL="../VeriStandTestCase/Tests/System/VeriStandTestCaseSystemTests.lvclass"/>
</Item>
</Item>
<Item Name="VeriStandTestCase.lvclass" Type="LVClass" URL="../VeriStandTestCase/VeriStandTestCase.lvclass"/>
Expand Down
5 changes: 5 additions & 0 deletions VeriStandTestCase/Tests/System/Assets/DummyProperty.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Overrides]
"Targets/Controller/IP Address" = "VS-Eco-Slave-8880"

[Properties]
"Dummy Property" = "Dummy Value"
102 changes: 102 additions & 0 deletions VeriStandTestCase/Tests/System/VeriStandTestCaseSystemTests.lvclass

Large diffs are not rendered by default.

Binary file added VeriStandTestCase/Tests/System/setUp.vi
Binary file not shown.
5 changes: 5 additions & 0 deletions VeriStandTestCase/Tests/System/targets.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Supported Targets]
PharLap = vs-eco-slave-8880

[Active Configuration]
Platform = PharLap
Binary file added VeriStandTestCase/Tests/System/tearDown.vi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added VeriStandTestCase/Tests/System/testExample.vit
Binary file not shown.
Binary file not shown.
111 changes: 0 additions & 111 deletions VeriStandTestCase/Tests/Unit/VeriStandTestCaseTests.lvclass

This file was deleted.

80 changes: 80 additions & 0 deletions VeriStandTestCase/Tests/Unit/VeriStandTestCaseUnitTests.lvclass

Large diffs are not rendered by default.

Binary file modified VeriStandTestCase/Tests/Unit/setUp.vi
Binary file not shown.
Binary file modified VeriStandTestCase/Tests/Unit/tearDown.vi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified VeriStandTestCase/Tests/Unit/testExample.vit
Binary file not shown.
Binary file not shown.

0 comments on commit 9e8b39e

Please sign in to comment.