This repository contains an example test to be used as reference for designing tests when using CARROT and the CARROT CLI.
The example test uses a simple Node application with two commands:
example-test make-data [a] [b]
prints 20 x,y coordinate pairs for values of x in the range [0,2] in increments of 0.1 supplied to the function y = ab^x
example-test compare [file]
accepts a csv file containing output from make-data
and prints prints 20 x,y coordinate pairs for values of x in the range [0,2] in increments of 0.1, where y = |2^x - file(x)|
where file(x) is the y value paired with x within the file.
The carrot-test-config
directory contains a file called carrot_commands.txt
which lists the series of CARROT CLI commands to use to prepare and run the example test, along with all the necessary files to do so.
First, ensure you have access to a running CARROT server with software building functionality and reporting functionality configured, and that you have downloaded and installed the CARROT CLI and configured it to point to that server.
Then, download the contents of carrot-test-config and run the commands in the carrot_commands.txt
file using CARROT CLI, following the instructions in the comments.