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

Adding an Image Test

To add an image test, navigate to Checks in the left sidebar and use the New Check + button. Next, select the Image Test option in the drop-down and see the settings below:



The test description. Shown to users if the task is live and checks are shared (which is the default).

Relative File Path (PNG)

The path to the image in the user's project. This is the relative path starting from the /home/nt-user/workspace directory.
For example, if the user'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 to account for false negatives.