-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Added - `kaocha.repl/config` accepts a `:profile` key when specifying extra options. ## Fixed - Configuration errors and circular dependencies are reported as warnings, rather than causing the entire watcher to crash. (thanks [@frenchy64](https://github.com/frenchy64)) - Fix bug added in [#384](#384): assertions in the tail position of an each fixture would return the result of the assertion instead of the testable object with the merged report data. (thanks [@NoahTheDuke](https://github.com/NoahTheDuke)) ## Changed
- Loading branch information
Showing
5 changed files
with
77 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.75 | ||
1.76 |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!-- This document is generated based on a corresponding .feature file, do not edit directly --> | ||
|
||
# Configuration: Warnings | ||
|
||
Kaocha will warn about common mistakes. | ||
|
||
## No config | ||
|
||
- <em>Given </em> a file named "test/my/foo_test.clj" with: | ||
|
||
``` clojure | ||
(ns my.foo-test | ||
(:require [clojure.test :refer :all])) | ||
|
||
(deftest var-test | ||
(is (= 456 456))) | ||
``` | ||
|
||
|
||
- <em>When </em> I run `bin/kaocha -c alt-tests.edn` | ||
|
||
- <em>Then </em> stderr should contain: | ||
|
||
``` nil | ||
Did not load a configuration file and using the defaults. | ||
``` | ||
|
||
|
||
|
||
## Warn about bad configuration | ||
|
||
- <em>Given </em> a file named "tests.edn" with: | ||
|
||
``` clojure | ||
#kaocha/v1 | ||
{:plugins notifier} | ||
``` | ||
|
||
|
||
- <em>And </em> a file named "test/my/foo_test.clj" with: | ||
|
||
``` clojure | ||
(ns my.foo-test | ||
(:require [clojure.test :refer :all])) | ||
|
||
(deftest var-test | ||
(is (= 456 456))) | ||
``` | ||
|
||
|
||
- <em>When </em> I run `bin/kaocha` | ||
|
||
- <em>Then </em> stderr should contain: | ||
|
||
``` nil | ||
Invalid configuration file: | ||
``` | ||
|
||
|
||
|