Skip to content

Instantly share code, notes, and snippets.

@plexus
Created February 1, 2021 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plexus/7952c1bd267d235613ca89d08c55888e to your computer and use it in GitHub Desktop.
Save plexus/7952c1bd267d235613ca89d08c55888e to your computer and use it in GitHub Desktop.
(ns foo.bar)
(defn add-numbers [& numbers]
(apply + numbers))
(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))))
{:paths ["src" "test"]
:aliases
{:kaocha
{:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.732"}}}}}
#!/bin/bash
clojure -M:kaocha -m kaocha.runner "$@"
#kaocha/v1 {}
.
├── 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