Integration tests¶
Compared with functionality tests, integration tests test larger entities, not one function at a time but several functions in a sequence. The integration tests are also at students' disposal under directory prg1/integration-compulsory and can be executed in a following manner:
- First compile the program: qmake; make
- Execute test
testread "integration-compulsory/example-compulsory-in.txt" "integration-compulsory/example-compulsory-out.txt"
either
- in GUI,
then typing or selecting the command testread from a dropdown menu in the text field and giving files "example-compulsory-in.txt" and an input and "example-compulsory-out.txt" as a reference output../prg1
- Warning! You need to change the working directory to the directory where the test files are located for the above testread operation to work. Otherwise, you need to include the path to the test files in the command.
- in GUI,
- by initiating the console mode,
and then running testread command./prg1 --console
- by saving above-mentioned instructions in a file, and by giving the file as a parameter:
./prg1 cmd_file
After you get the compulsory functionality implemented, the optional funtionality can be tested in a similar manner. You can find the optional integration tests in the "integration-optional" folder.
The integration grader for optional functionality can be found in the module 'Project 1 graders(optional)
Warning
Before attempting to grade your Project in Plussa, remember to push your commits to the remote repository. Otherwise, the grader will not find it.
A+ esittää tässä kohdassa tehtävän palautuslomakkeen.