Displaying the internal meta files and test data for analyzing problems

Usually, the following steps are not necessary when testing single POUs. The steps are necessary, if there has been an error and the support team of logi.cals asks you to do so.

  1. Configure logi.CAD 3 so that the internal test data are not automatically deleted after the test execution any longer: Open the project properties (context menu of the project, command Properties ), go to the group Test framework , c heck the setting Keep test-gen folder after test execution (for debugging) and click Apply and close.

  2. Have the internal meta files and test data displayed within the project explorer: Click images/download/attachments/451280970/IconViewMenu-version-1-modificationdate-1598000630466-api-v2.png in toolbar of the project explorer and select Filters and Customization... In the dialog, uncheck the following items (under Filter) and click OK.

    • Meta files for test suites

      Good to know

      images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/lightbulb.svg The meta files are automatically created when creating/opening a test project or when subsequently executing the tests. If you are creating a project within a GibHub repo, you might want to exclude some of these files from tracing by Git (see under "Grundregeln für das Testen").

      images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/lightbulb.svg One of the meta files is the report for the test coverage. This report is filed in the folder where the test suite is located (name of this report: POU-name.SiL.file-extension.gcov ; example: mysin.SiL.iecst.gcov for a report for test coverage on the POU mysin created within ST).

    • test-gen folder

  3. Execute the tests again so that the internal meta files and test data exist to analyze the problem.

After the problem has been analysed and fixed, restore the default configuration of logi.CAD 3 by undoing the above changes as follows:

  1. Uncheck the setting Keep test-gen folder after test execution (for debugging) within the properties of the project.

  2. Check Meta files for test suites and test-gen folder within the filter.

If you do not restore the default configuration of logi.CAD 3, project modifications (such as renaming or deleting POUs or test suites) might make the content of the test-gen folder faulty or out of date. Subsequently, the project might contain some errors that would not occur within the default configuration of logi.CAD 3.