Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
add not about custom tests executiong to the readme/help
Browse files Browse the repository at this point in the history
  • Loading branch information
w33ble committed Dec 15, 2016
1 parent b043b42 commit 139221e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tasks/test/browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ Browser tests are written just like server tests, they are just executed differe
starting the test runner
========================

Under the covers this command uses the `test:dev` task from kibana. This task sets-up
a test runner that will watch your code for changes and rebuild your tests when necessary.
You access the test runner through a browser that it starts itself (via Karma).
Under the covers this command uses the `test:browser` task from kibana. This will execute
your tasks once and exit when complete.

When run with the `--dev` option, the command uses the `test:dev` task from kibana.
This task sets-up a test runner that will watch your code for changes and rebuild your
tests when necessary. You access the test runner through a browser that it starts itself
(via Karma).

If your plugin consists of a number of internal plugins, you may wish to keep the tests
isolated to a specific plugin or plugins, instead of executing all of the tests. To do this,
use `--plugins` and passing the plugins you would like to test. Muliple plugins can be
specified by separating them with commas.


running the tests
Expand Down
9 changes: 9 additions & 0 deletions tasks/test/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ running the tests
Running the server tests is simple, just execute `npm run test:server` in your terminal
and all of the tests in your server will be run.

By default, the runner will look for tests in `server/**/__tests__/**/*.js`. If you'd prefer to
use a different collection of globs and files, you can specify them after the `npm run test:server`
task, like so:
`npm run test:server 'plugins/myplugins/server/__tests__/**/*.js'`
NOTE: quoting the glob pattern is not required, but helps to avoid issues with globbing expansion
in your shell.
focus on the task at hand
=========================
Expand Down

0 comments on commit 139221e

Please sign in to comment.