summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Thompson <andrew@hijacked.us>2014-02-06 14:58:38 -0500
committerAndrew Thompson <andrew@hijacked.us>2014-02-07 13:08:14 -0500
commit2f6991cbd7ae249e0d24f991c37b2746fd78b1d6 (patch)
treebf9389b79938bf3e0b2020525d1b36958c9b8244
parent03da5e0be061dfed832ca7eaaf5998fa7cf27640 (diff)
Add documentation
-rw-r--r--src/rebar.erl2
-rw-r--r--src/rebar_eunit.erl3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/rebar.erl b/src/rebar.erl
index b213e6c..833e397 100644
--- a/src/rebar.erl
+++ b/src/rebar.erl
@@ -369,6 +369,8 @@ eunit [suite[s]=foo] Run eunit tests in foo.erl and
no such test exists, run the test whose
name starts with bar in the suite's
_tests module
+ [random_suite_order=true] Run tests in a random order, either with
+ [random_suite_order=Seed] a random seed for the PRNG, or a specific one.
ct [suite[s]=] [case=] Run common_test suites
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index 323e199..3fe1280 100644
--- a/src/rebar_eunit.erl
+++ b/src/rebar_eunit.erl
@@ -126,6 +126,9 @@ info_help(Description) ->
" name starts with bar and, if no such test exists,~n"
" run the test whose name starts with bar in the~n"
" suite's _tests module)~n"
+ " random_suite_order=true (Run tests in random order)~n"
+ " random_suite_order=Seed (Run tests in random order,~n"
+ " with the PRNG seeded with Seed)~n"
" compile_only=true (Compile but do not run tests)",
[
Description,