Running anvil's Unit Tests

This document is written based upon the premise that you have already set up anvil for local execution and want to run the unit tests. If you have not the here are the instructions on how to do that.

The normal starting point for running the unit tests is the top anvil directory. If this is not your current workinng directory you should move into that directory now before proceeding.

From there you can simply execute the run_tests script in the src/test/bash directory and all of the unit tests will be exercised.

[user@node] ./src/test/bash/run_tests 
./src/test/bash/test.cmd.help has succeded
./src/test/bash/test.failure has succeded
./src/test/bash/test.help has succeded
./src/test/bash/test.invoke has succeded
./src/test/bash/test.prompt has succeded
./src/test/bash/test.quiet has succeded
./src/test/bash/test.start.run has succeded
./src/test/bash/test.start.sam has succeded
./src/test/bash/test.start.stop has succeded
./src/test/bash/test.stop.run has succeded
./src/test/bash/test.stop.sam has succeded
./src/test/bash/test.usage has succeded
./src/test/bash/test.version has succeded
Ran 13 tests, with 13 successes and 0 failures

To execute a specified set of tests you simply provide the test names as arguments to the run_tests script.

[user@node] ./src/test/bash/run_tests prompt
./src/test/bash/test.prompt has succeded
Ran 1 tests, with 1 successes and 0 failures