summaryrefslogtreecommitdiffstats
path: root/tests/README.md
diff options
context:
space:
mode:
authorChris <github.account@chrigel.net>2017-07-17 18:15:35 +0200
committerGitHub <noreply@github.com>2017-07-17 18:15:35 +0200
commit00d0aad3c23e871eaf83749b3a01585ab7c70a72 (patch)
tree4ffadf17458e79f8766e1d78e1a7a3f14ebda0fc /tests/README.md
parent1fe557fe3d06f79f2f1c2db1684eeedccf2dc8d8 (diff)
Inserted images
Diffstat (limited to 'tests/README.md')
-rw-r--r--tests/README.md17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/README.md b/tests/README.md
index 2a38efc136..fd753254e1 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -86,8 +86,15 @@ I haven't figured out yet how to switch to newer 2.6 versions. So it may contain
## In WebStorm
+### Karma
Just run the configured run configurations and they produce nice test trees:
+![karma_run_2](https://user-images.githubusercontent.com/12159026/28277789-559149f6-6b1b-11e7-9cc7-a81d81d12c35.png)
+
+### node.js
+
+Debugging is awesome too!
+![node_debug](https://user-images.githubusercontent.com/12159026/28277879-8beee5ee-6b1b-11e7-9356-3156956f2282.png)
## From CLI
@@ -101,7 +108,7 @@ nodejs ./node_modules/karma/bin/karma start tests/web/karma.conf.js --single-run
will start the karma server, start chromium in headless mode and exit.
If a test fails, it produces even a stack trace:
-
+![karma_run_1](https://user-images.githubusercontent.com/12159026/28277754-3682bebe-6b1b-11e7-8b7e-66b23d87177d.png)
### Node.d plugins
@@ -112,7 +119,7 @@ nodejs node_modules/jasmine-node/bin/jasmine-node --captureExceptions tests/node
```
will run the tests in `tests/node.d` and produce a stacktrace too on error:
-
+![node_run](https://user-images.githubusercontent.com/12159026/28277812-65bb69b0-6b1b-11e7-8500-bcdbb3436574.png)
## Coverage
@@ -120,6 +127,10 @@ will run the tests in `tests/node.d` and produce a stacktrace too on error:
A nice HTML is produced from Karma which shows which code paths were executed. It is located somewhere in `/path/to/your/netdata/coverage/`
+![coverage_2](https://user-images.githubusercontent.com/12159026/28277719-142146c4-6b1b-11e7-9992-3e88dee2efd2.png)
+and
+![coverage_1](https://user-images.githubusercontent.com/12159026/28277687-fa93e360-6b1a-11e7-995f-cbb4c5d012a7.png)
+
### Node.d
Apparently, jasmine-node can produce a junit report with the `--junitreport` flag. But that output was not very useful. Maybe it's configurable?
@@ -128,4 +139,4 @@ Apparently, jasmine-node can produce a junit report with the `--junitreport` fla
The karma and node.d runners can be integrated in Travis (AFAIK), but that is outside my ability.
-Note: Karma is for browser-testing. On a build server, no GUI or browser might by available, unless browsers support headless mode. \ No newline at end of file
+Note: Karma is for browser-testing. On a build server, no GUI or browser might by available, unless browsers support headless mode.