Created
February 1, 2021 09:28
-
-
Save plexus/7952c1bd267d235613ca89d08c55888e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns foo.bar) | |
(defn add-numbers [& numbers] | |
(apply + numbers)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns foo.bar-test | |
(:require [foo.bar :as bar] | |
[clojure.test :refer [deftest testing is are use-fixtures run-tests join-fixtures]])) | |
(deftest add-numbers-test | |
(is (= 10 (bar/add-numbers 1 2 3 4)))) | |
(deftest add-numbers-fail-test | |
(is (= 9 (bar/add-numbers 1 2 3 4)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:paths ["src" "test"] | |
:aliases | |
{:kaocha | |
{:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.732"}}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
clojure -M:kaocha -m kaocha.runner "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#kaocha/v1 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── bin | |
│ └── kaocha | |
├── deps.edn | |
├── src | |
│ └── foo | |
│ └── bar.clj | |
├── test | |
│ └── foo | |
│ └── bar_test.clj | |
├── tests.edn | |
└── tree.txt | |
5 directories, 6 files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment