Testing elements for library (= SiL-test)
The test framework of Neuron Power Engineer allows you to create automated →unit tests for each library element and to achieve an corresponding test coverage. This test is also known as →SiL-test.
Recommended The execution of the SIL-test per library element is a recommended step, if you create a logi.SAFE library or a logi.WEB library. |
If you want to generate a Neuron Power Engineer library, skip this instruction.
Proceed as follows in order to test the library elements of a logi.SAFE or a logi.WEB library:
-
Make sure that the project where the library element is located is compliant with the appropriate conditions. Details: See "Preparing an existing project for tests".
-
Create a test suite for a library element. Details: See "Creating a test suite".
-
Enter the test data for the library element within this test suite. Afterwards import the test suite into the test project. Details: See "Modifying the Excel test suite, creating the test suite required for test execution".
-
Have these tests executed as SiL-Test with Coverage and check the test coverage. Details: See "Executing the test".
Neuron Power Engineer generates files based on the test execution. These files are located in the same folder as the test suite (e.g. the filereport.html
for the test report). When the library is generated, these files are automatically packed within the library in order to log the performed test execution.
If you do not achieve a full test coverage for a library element and this full test coverage is not required due to corresponding reviews, it is possible to specify this exception within the library configuration – the keyword SiLCoverageReviewed
must be used. Details: See under "Declaration of the contents of the library".
Good to know |
---|
Neuron Power Engineer provides a tool for the automated SiL-test. |