This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new 25c7981 Review README
25c7981 is described below
commit 25c79819d62c5bb075dd80b0eaee95ba53f51b99
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Thu Sep 6 11:33:03 2018 +0200
Review README
---
karate-http-testing/README.md | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/karate-http-testing/README.md b/karate-http-testing/README.md
index 490ef49..9cb1f95 100644
--- a/karate-http-testing/README.md
+++ b/karate-http-testing/README.md
@@ -13,11 +13,18 @@ The test scenarios are found *.feature files under
`src/test`, like [createConte
See also https://github.com/bdelacretaz/karate-mini-mocks which is a minimal
demonstration of the Karate "test doubles" which allow for mocking HTTP
services with a very similar syntax than the feature tests.
-Karate notes
-------------
+Running the tests
+-----------------
+The karate "feature" test files are triggered by JUnit tests which have the
`@RunWith(Karate.class)` annotation, like
[SlingTest.java](src/test/java/sling/SlingTest.java), so they run as part of
the standard Maven unit or integration tests.
+
+To run test features which have a specific tag, use for example
-Karate docs are at https://github.com/intuit/karate
+ mvn clean test -Dcucumber.options="--tags @images"
-A comment on Karate vs. Spock (by the author of Karate) is available at
https://stackoverflow.com/questions/45352358/karate-vs-spock
+And to run the Gatling performance tests, use
-The Karate UI is described at https://github.com/intuit/karate/wiki/Karate-UI
+ mvn -o clean test-compile gatling:test && open $(find target/gatling -name
index.html)
+
+Karate notes
+------------
+The Karate UI is described at https://github.com/intuit/karate/wiki/Karate-UI
\ No newline at end of file