Functionality tests

Functionality tests - Compulsory

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:

  1. First compile the program:
    qmake;make
  2. Execute test testread "test-10-get_referenced_by_chain-in.txt" "test-10-get_referenced_by_chain-out.txt" either
    1. in GUI,
      ./prg1
      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:
    2. by initiating the console mode,
      ./prg1 --console
      and then running testread command
    3. by saving above-mentioned instructions in a file, and by giving the file as a parameter:
      ./prg1 cmd_file
  3. 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.