Skip to content

Commit

Permalink
Rename & use tests conf explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
ccfontes authored Nov 6, 2023
1 parent ab37f9e commit f193866
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
- name: Install Babashka
run: bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
- name: Run unit tests
run: bb tests.clj
run: bb --config tests.edn tests.clj
working-directory: ${{ github.workspace }}/template/bb
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Run locally the unit tests for `bb` language:
[source, bash]
----
cd template/bb
bb tests.clj
bb --config tests.edn tests.clj
----
`tests.clj` is included with the template so you can test any changes you make to the template before using it.

Expand Down
5 changes: 2 additions & 3 deletions examples/http/bb-routes-bell/handler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

(def handler
(router
(POST "/"
(fn [{:keys [body]}]
[(keys body) (vals body)]))
(POST "/" (fn [{:keys [body]}]
[(keys body) (vals body)]))
(PUT "/foo/:id"
(fn [{:keys [path-params]}]
[(keys path-params) (vals path-params)]))))
1 change: 0 additions & 1 deletion template/bb/bb.edn → template/bb/tests.edn
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
; used only for tests. Not copied into docker container
{:paths ["." "lib"]
:deps {eg/eg {:mvn/version "0.5.6-alpha"}}}

0 comments on commit f193866

Please sign in to comment.