The tests in the project https://github.com/Yuri05/OSPSuite.SimModel/tree/master/tests/OSPSuite.SimModel.Tests are all written in C# and test the C++ functionality (encapsulated in the project https://github.com/Yuri05/OSPSuite.SimModel/tree/master/src/OSPSuite.SimModelNative ) only indirectly.
Add the second test project which tests the C++ functionality directly (without relying on C#).
- Select appropriate testing framework which will run under Windows, Ubuntu, and MacOS
- Add new project (tests/OSPSuite.SimModelNative.Tests)
- Make sure the new test project is properly handled
- Under Windows:
|
dotnet test tests/OSPSuite.SimModel.Tests/OSPSuite.SimModel.Tests.csproj --no-build --no-restore --configuration:Release --verbosity normal --logger:"html;LogFileName=../../../testLog_Windows.html" |
- Under Linux (Ubuntu)/MacOS:
|
dotnet test tests/OSPSuite.SimModel.Tests/OSPSuite.SimModel.Tests.csproj --no-build --no-restore --configuration:Release --verbosity normal --logger:"html;LogFileName=../../../testLog_$1.html" |
- Add unit tests to the newly created project to cover the source code in https://github.com/Yuri05/OSPSuite.SimModel/tree/master/src/OSPSuite.SimModelNative as much as possible)
The tests in the project https://github.com/Yuri05/OSPSuite.SimModel/tree/master/tests/OSPSuite.SimModel.Tests are all written in C# and test the C++ functionality (encapsulated in the project https://github.com/Yuri05/OSPSuite.SimModel/tree/master/src/OSPSuite.SimModelNative ) only indirectly.
Add the second test project which tests the C++ functionality directly (without relying on C#).
OSPSuite.SimModel/buildWindows.bat
Line 4 in 97b52a1
OSPSuite.SimModel/buildNix.sh
Line 52 in 97b52a1