Skip to content

Commit 368b4e4

Browse files
authored
Merge pull request #324 from lambdaisland/alys/document-nondeterminism
Document nondetermism in --print-config.
2 parents 77334ed + 8984fd0 commit 368b4e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/features/command_line/print_config.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Feature: CLI: Print the Kaocha configuration
99
configuration from any available sources, runs it through any active plugins,
1010
and then pretty prints the result, an EDN map.
1111

12+
Note that the ordering, while not expected to change, is not guaranteed. We
13+
recommend parsing the configuration as EDN and not relying on order. If you
14+
are manipulating the output as text (say, on the command line) and can't
15+
avoid relying on the order, run it through a tool like
16+
[puget](https://github.com/greglook/puget) or
17+
[zprint](https://github.com/kkinnear/zprint) that sorts the keys
18+
alphabetically first.
19+
1220
Scenario: Using `--print-config`
1321
When I run `bin/kaocha --print-config`
1422
Then the EDN output should contain:

0 commit comments

Comments
 (0)