Skip to content

Commit 8fe95a7

Browse files
committed
build: docker test scripts
1 parent 7349e35 commit 8fe95a7

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

bin/test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
bin/lein kaocha "$@"

bin/test-focus

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
bin/lein kaocha --focus "$@"

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
- "./package.json:/usr/src/app/package.json"
1818
- "./src:/usr/src/app/src"
1919
- "./test:/usr/src/app/test"
20+
- "./tests.edn:/usr/src/app/tests.edn"
2021
- "./docker/docker-prod.edn:/usr/src/app/resources/prod.edn" # Override server configs
2122
depends_on:
2223
- database

test/clj/game/core/say_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
(let [cmd-source (with-out-str (repl/source game.core.commands/parse-command))
2222
implemented-cmds (map str (re-seq #"(?<=\")\/[^ \"]*(?=\")" cmd-source))
2323
documented-cmds (map :name command-info)]
24+
(is true) ;; so kaocha doesn't fail this test with no assertions
2425
(doseq [cmd implemented-cmds]
2526
(when-not (some #(= % cmd) documented-cmds)
2627
(is false (str "command '" cmd "' is undocumented"))))

0 commit comments

Comments
 (0)