Skip to content

Commit

Permalink
feat: instrument specs ns when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jul 20, 2024
1 parent 0e04ca1 commit bf81dd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Compile uberjar
run: lein uberjar
run: clj -T:build uber
- name: Run javadoc tool
run: mkdir -p _site/javadoc && javadoc -d _site/javadoc --source-path ./java-src -cp target/stencil-core-*-standalone.jar -subpackages io.github.erdos.stencil
- name: Setup Pages
Expand Down
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
:extra-deps {lambdaisland/kaocha {:mvn/version "1.87.1366"}
lambdaisland/kaocha-junit-xml {:mvn/version "1.17.101"}
org.slf4j/slf4j-simple {:mvn/version "1.7.32"}}
:main-opts ["-m" "kaocha.runner"
:main-opts ["-e" "(require 'stencil.spec) ((requiring-resolve 'clojure.spec.test.alpha/instrument))"
"-m" "kaocha.runner"
"--plugin" "kaocha.plugin/junit-xml"
"--junit-xml-file" "target/surefire-reports/kaocha.xml"]
:jvm-opts ["-Dorg.slf4j.simpleLogger.defaultLogLevel=debug"]}}}
2 changes: 1 addition & 1 deletion docs/Standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ It may also be easier if your application's architecture is not written in java.

## Building

Build the project with the `lein uberjar` command to get a standalone application. The built output will be found in the `target` directory.
Build the project with the `clj -T:build uber` command to get a standalone application. The built output will be found in the `target` directory.

Run the file with the `java -jar *-standalone.jar` command.

Expand Down

0 comments on commit bf81dd9

Please sign in to comment.