Skip to content

Test case directory and project structure in tmc langs

nucularmoo edited this page Oct 18, 2017 · 23 revisions

Until completed as a feature and merged with master, work in progress can be found in the forked TestMyQT/tmc-langs project under the branch template_folder_structure.

Test cases are located in the tmc-langs project.

Test case project structure follows our proposed structure for testing projects using the tmc-plugin.

Directory path for test cases is tmc-langs/tmc-langs-qmake/src/test/resources.

For each test case there exists a subdirectory where the relevant test case project file and subsequent subdirectories test_case_app, test_case_libs (if the test case project includes libraries) and test_case_test_runner are located.

test case app contains the test case project file and relevant source and header files. test_case_libs contains the library project file and relevant source and header files. test_case_test_runner contains the test runner project file and relevant source and header files.

Test cases included so far are:

passing_nolib - tests passing with no library included in the project

passing_single_lib - tests passing with one library included in the project

passing_multiple_lib - tests passing with multiple libraries included in the project

failing_nolib - tests failing with no library included in the project

failing_single_lib - tests failing with one library included in the project

failing_single_lib_not_compiling - build failing with one library included in the project, said library failing to compile

failing_compile_single_lib_compiling - build failing with one library included in the project, said library compiling as intended

TODO: Add documentation for project structure and test case subdirectory structure

Clone this wiki locally