Coverage for test_all.py: 100%

43 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-04-10 15:08 +0100

1#----------------------------------------------------------------------------------- 

2# Test script to run all system tests 

3#----------------------------------------------------------------------------------- 

4 

5import system_test_harness 

6 

7import basic_library_tests 

8 

9import test_schematic_editor 

10import test_object_editing 

11import test_run_layout 

12import test_object_edit_windows 

13import test_mqtt_networking 

14import test_configuration_updates 

15 

16import test_interlocking_examples 

17import test_automation_examples 

18import test_single_line_examples 

19import test_mqtt_networking_example 

20 

21import test_library_objects 

22 

23import test_load_layout_failures 

24 

25def run_all_tests(): 

26 print("*** Running tests from 'basic_library_tests.py' ***") 

27 basic_library_tests.run_all_basic_library_tests() 

28 print("*** Running tests from 'test_schematic_editor.py' ***") 

29 test_schematic_editor.run_all_schematic_editor_tests() 

30 print("*** Running tests from 'test_object_editing.py' ***") 

31 test_object_editing.run_all_object_editing_tests() 

32 print("*** Running tests from 'test_run_layout.py' ***") 

33 test_run_layout.run_all_run_layout_tests() 

34 print("*** Running tests from 'test_mqtt_networking.py' ***") 

35 test_mqtt_networking.run_all_mqtt_networking_tests() 

36 

37 print("*** Running tests from 'test_configuration_updates.py' ***") 

38 test_configuration_updates.run_all_configuration_update_tests() 

39 print("*** Running tests from 'test_object_edit_windows.py' ***") 

40 test_object_edit_windows.run_all_configuration_window_tests() 

41 

42 print("*** Running tests from 'test_interlocking_examples.py' ***") 

43 test_interlocking_examples.run_all_interlocking_example_tests() 

44 print("*** Running tests from 'test_automation_examples.py' ***") 

45 test_automation_examples.run_all_automation_example_tests() 

46 print("*** Running tests from 'test_single_line_examples.py' ***") 

47 test_single_line_examples.run_all_single_line_example_tests() 

48 print("*** Running tests from 'test_mqtt_networking_example.py' ***") 

49 test_mqtt_networking_example.run_all_mqtt_networking_example_tests() 

50 

51 print("*** Running tests from 'test_library_objects.py' ***") 

52 test_library_objects.run_all_basic_library_tests() 

53 

54 print("*** Running tests from 'test_load_layout_failures.py' ***") 

55 test_load_layout_failures.run_all_load_layout_negative_tests() 

56 system_test_harness.report_results() 

57 

58# The main code starts here 

59system_test_harness.start_application(lambda:run_all_tests())