Adding Image Tests

Image tests allow you to compare images and generate the visual difference between them.

The options for this test are described below.


The test description shown to the user.

Relative File Path (PNG)

The path to the image in the student's project. This is the relative path starting from the /home/nt-user/workspace directory.

For example, if the student's image will be generated in /home/nt-user/workspace/images/theimage.png, the value for this field should be images/theimage.png.

Solution File (PNG)

Upload a PNG image that is the solution image.

Tolerance %

Percent difference that must be met in image comparison for test to pass. There is an additional 5% tolerance applied when the test is run.