summaryrefslogtreecommitdiff
path: root/doc/testing.txt
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-07-11 17:22:24 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:37 (GMT)
commitcdc87f35674c1a8a23f9c13a34755cf7983f9f93 (patch)
treef5292b5b86711d068ed961ac828b1e0cdd48e0f7 /doc/testing.txt
parent14da5b7e67cc0852e59da5c36da38de7d6833fce (diff)
Regression test howto
Diffstat (limited to 'doc/testing.txt')
-rw-r--r--doc/testing.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/testing.txt b/doc/testing.txt
new file mode 100644
index 0000000..e3856b0
--- /dev/null
+++ b/doc/testing.txt
@@ -0,0 +1,14 @@
+Adding a new regression test:
+
+1) create a test file at an appropriate location under testdata/
+2) if the test is non-obvious, create a human readable description of the test in the same directory (e.g testdata/scad/mytest.txt)
+3) if a new test app was written, this must be added to tests/CMakeLists
+4) run the test with the environment variable TEST_GENERATE=1, e.g.:
+ $ ECAD_GENERATE=1 ctest -R mytest
+ (this will generate a mytest-expected.txt file which is used for regression testing)
+5) manually verify that the output is correct (test-data/scad/mytest-expected.txt)
+6) run the test normally and verify that it passes:
+ $ ctest -R mytest
+
+Note that test files which don't have an *-expected.<suffix> file will
+be ignored for the test apps in question.
contact: Jan Huwald // Impressum