summaryrefslogtreecommitdiff
path: root/TESTING
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2017-01-08 14:59:25 +0000
committerRichard Maw <richard.maw@gmail.com>2017-01-08 15:01:29 +0000
commitc9c0d3d997bf878164d9123743363d23e789932a (patch)
tree55a42e15dc4457d3016f1344ffe8df853b53193e /TESTING
parent17284b8e42da5a359f06dd4b56488914a008c1c4 (diff)
downloadgitano-c9c0d3d997bf878164d9123743363d23e789932a.tar.gz
testing: Add a way to extract variables from the test suite
Diffstat (limited to 'TESTING')
-rw-r--r--TESTING17
1 files changed, 17 insertions, 0 deletions
diff --git a/TESTING b/TESTING
index 6253086..8d65f15 100644
--- a/TESTING
+++ b/TESTING
@@ -254,3 +254,20 @@ Tip and tricks when writing tests for Gitano
however, `bash` then you should take extra care not to write bashisms into
your test implementations.
+Analysing the variables used in lace contexts
+=============================================
+
+The set of predicates and variables available to lace contexts
+depends on the operation, and in many cases the data in the repository.
+
+This makes it difficult to know exactly what variables are available.
+
+To aid with this, if `GITANO_DUMP_VARIABLE_FILE` is set in the environment
+it will write a table of variables and the operations they exist in
+to the file path in `GITANO_DUMP_VARIABLE_FILE`.
+
+To make use of this in the test suite add
+`--env GITANO_DUMP_VARIABLE_FILE=$file_path` to `YARN_ARGS`.
+
+This is not compatible with running yarns in parallel
+and depends on the test suite coverage to produce sufficient results.