Functionality tests¶
This grader runs the compulsory functionality tests.
Names of each test file describe the purpose of tests, i.e., affiliations and publications are added, searched, sorted and connected in various ways. Functionality test results are reported in separate sections.
The test files are also available for students under directory:
prg1/functionality-compulsory.
If the files are missing you may need to
update your local repository and pull the latest changes from the course
upstream with the following command:
git pull course-upstream main --allow-unrelated-histories.
You can execute the tests locally in the following manner:
- First compile the program:
qmake;make - Execute test
testread "test-10-get_referenced_by_chain-in.txt" "test-10-get_referenced_by_chain-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. # add a bootstrap warning here:./prg1Warning! 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. - 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
- in GUI,
- Question marks (?) in the output of testread indicate found differences that must cease to exist
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.