winIDEA SDK
iTest

cumulative_coverage.py

This script demonstrates testing with coverage measurement.

Only one function is tested and tests are implemented in a way to reach 100% coverage. Coverage is completely configured in test specification.

cumulative_module_coverage.py

This script demonstrates testing with coverage measurement. Several functions are tested. Coverage document is configured with isystem.connect calls, and later reused in test specification.

filter_tests.py

This script demonstrates testing cycle with custom filtering of tests to be executed. Contains function for recursive execution of tests in the test specification tree.

itest_sample.py

This script demonstrates usage of isystem.test from Python. Test

itest_with_parameters.py

This example demonstrates the usage of parametrized test specifications. Two ways for parameterizing tests are shown:

  • modifying test specifications (two examples)
  • using isystem.test API to modify test contents (the last example)

persistent_vars.py

This script demonstrates usage of persistent variables in unit tests.

script_callback_methods.py

This script demonstrates calling of script methods specified in test specification. See tags initFunc and endFunc in test specification.

programmatic_test_case_creation.py

This script demonstrates programmatic creation of test case using isystem.itest API.

junitreport.py

This script can be used to write test results to XML file in JUnit format. Not all tags supported by JUnit are provided, but the script can easily be expanded to support them.

create_test_report.py

This script demonstrates how to set up data structures used in isystem.test module to produce test reports. You can use this functionality of isystem.test to create testIDEA looking reports even when tests are executed by Python scripts, not with iyaml test specification, for example in complex system tests.

stubs_and_user_stubs_in_sys_tests.py