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 1f51e15 Move Karate tests here
1f51e15 is described below
commit 1f51e152bf07bd35ac9d8cb1c7434e2c7c391931
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Tue Sep 4 14:24:57 2018 +0200
Move Karate tests here
---
.../karate => karate-http-testing}/README.md | 12 +++++++-----
.../karate => karate-http-testing}/pom.xml | 0
.../src/test/java/karate-config.js | 0
.../src/test/java/logback-test.xml | 0
.../src/test/java/sling/SlingTest.java | 0
.../sling/postservlet/createcontent/createContent.feature | 0
.../sling/postservlet/createcontent/importContent.feature | 0
.../src/test/java/sling/util/basic-auth-header.js | 0
literate-http-testing/README.md | 7 -------
9 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/literate-http-testing/karate/README.md
b/karate-http-testing/README.md
similarity index 54%
rename from literate-http-testing/karate/README.md
rename to karate-http-testing/README.md
index 7d34477..7d2ae85 100644
--- a/literate-http-testing/karate/README.md
+++ b/karate-http-testing/README.md
@@ -1,11 +1,11 @@
-Literate HTTP Testing with Karate
-=================================
+HTTP Testing with Karate
+========================
-I'm experimenting with tools to write (very) readable tests for HTTP APIs,
that could serve as reference documentation.
+This is a series of experiments using Karate
(https://github.com/intuit/karate) for testing Sling HTTP APIs.
-This is the Karate variant of this experiment, using
https://github.com/intuit/karate
+It is used as the basis of my adaptTo 2018 talk, [Karate, the black belt of
HTTP API
testing?](https://adapt.to/2018/en/schedule/karate-the-black-belt-of-http-api-testing.html)
-To run these tests, start a Sling trunk instance on port 8080 and run `mvn
clean test`.
+To run these tests, start a Sling trunk instance on port 8080 (separately for
now - should be automated) and run `mvn clean test`.
The Karate HTML output (like
`target/surefire-reports/TEST-sling.postservlet.createcontent.createContent.html`)
then displays the detailed HTTP interactions, it's very useful for debugging
the tests.
@@ -17,3 +17,5 @@ Karate notes
Karate docs are at https://github.com/intuit/karate
A comment on Karate vs. Spock (by the author of Karate) is available at
https://stackoverflow.com/questions/45352358/karate-vs-spock
+
+The Karate UI is described at https://github.com/intuit/karate/wiki/Karate-UI
diff --git a/literate-http-testing/karate/pom.xml b/karate-http-testing/pom.xml
similarity index 100%
rename from literate-http-testing/karate/pom.xml
rename to karate-http-testing/pom.xml
diff --git a/literate-http-testing/karate/src/test/java/karate-config.js
b/karate-http-testing/src/test/java/karate-config.js
similarity index 100%
rename from literate-http-testing/karate/src/test/java/karate-config.js
rename to karate-http-testing/src/test/java/karate-config.js
diff --git a/literate-http-testing/karate/src/test/java/logback-test.xml
b/karate-http-testing/src/test/java/logback-test.xml
similarity index 100%
rename from literate-http-testing/karate/src/test/java/logback-test.xml
rename to karate-http-testing/src/test/java/logback-test.xml
diff --git a/literate-http-testing/karate/src/test/java/sling/SlingTest.java
b/karate-http-testing/src/test/java/sling/SlingTest.java
similarity index 100%
rename from literate-http-testing/karate/src/test/java/sling/SlingTest.java
rename to karate-http-testing/src/test/java/sling/SlingTest.java
diff --git
a/literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/createContent.feature
b/karate-http-testing/src/test/java/sling/postservlet/createcontent/createContent.feature
similarity index 100%
rename from
literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/createContent.feature
rename to
karate-http-testing/src/test/java/sling/postservlet/createcontent/createContent.feature
diff --git
a/literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/importContent.feature
b/karate-http-testing/src/test/java/sling/postservlet/createcontent/importContent.feature
similarity index 100%
rename from
literate-http-testing/karate/src/test/java/sling/postservlet/createcontent/importContent.feature
rename to
karate-http-testing/src/test/java/sling/postservlet/createcontent/importContent.feature
diff --git
a/literate-http-testing/karate/src/test/java/sling/util/basic-auth-header.js
b/karate-http-testing/src/test/java/sling/util/basic-auth-header.js
similarity index 100%
rename from
literate-http-testing/karate/src/test/java/sling/util/basic-auth-header.js
rename to karate-http-testing/src/test/java/sling/util/basic-auth-header.js
diff --git a/literate-http-testing/README.md b/literate-http-testing/README.md
deleted file mode 100644
index 945c66c..0000000
--- a/literate-http-testing/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-Literate HTTP Testing
-=====================
-
-I'm experimenting with tools for writing HTTP tests that are readable enough
to serve
-as reference documentation for out APIs.
-
-Experiments are found in subfolders named after the tools that they use.
\ No newline at end of file