Created
February 1, 2021 09:27
-
-
Save plexus/9db43a74ec21094bf77a090a8c265bb5 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 {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment