Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update test-runner options in readme

  • Loading branch information...
commit c298bb7cf6eb11bf0276049cd9772081f6bfdf7d 1 parent ae6caca
Rob Whitby authored
Showing with 11 additions and 8 deletions.
  1. +11 −8 README.md
19 README.md
View
@@ -81,19 +81,22 @@ To invoke tests stored elsewhere, set the directory parameter.
## Test Runner Command Line Parameters
-`-d` test directory path relative from the app server modules root. Optional, defaults to "test".
-
-`-m` regex match on module name. Optional, default to match all.
-
-`-t` regex match on test name. Optional, defaults to match all.
-
-`-u` the url of the MarkLogic HTTP app server to connect to.
+```shell
+usage: test-runner.sh [options...]
+Options:
+ -c <user:password> Credential for HTTP authentication.
+ -d <path> Look for tests in this directory.
+ -h This message.
+ -m <regex> Test modules that match this pattern.
+ -t <regex> Test functions that match this pattern.
+ -u <URL> HTTP server location where index.xqy can be found.
+```
## Test Runner Shortcut
Rather than modify test-runner.sh or always pass in custom parameters, it's handy to create a small wrapper script in the project root, something like this:
```shell
-./xray/test-runner.sh -u http://localhost:8765/xray/ -d testdir $*
+./xray/test-runner.sh -u http://localhost:8765/xray/ -c user:pass -d testdir $*
```
This still allows using `-t` and `-m` to select which tests to run but removes the need to constantly set the url and test directory.
Please sign in to comment.
Something went wrong with that request. Please try again.