update doc
This commit is contained in:
parent
972a220ab3
commit
78116ced9a
1 changed files with 14 additions and 3 deletions
17
README.md
17
README.md
|
@ -82,9 +82,20 @@ As you can see, input and expected can be used in your test code. You have to de
|
||||||
You can use [aero](https://github.com/juxt/aero) in your test data declaration, e.g.
|
You can use [aero](https://github.com/juxt/aero) in your test data declaration, e.g.
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
{:to-be-refernced "ref-test"
|
{:references {:to-be-refernced "ref-test"}
|
||||||
:key1 #ref [:to-be-refernced]
|
:input #ref [:references :to-be-refernced]
|
||||||
:key2 #ref [:to-be-refernced]}
|
:expected #ref [:references :to-be-refernced]}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Adding Meta
|
||||||
|
You can add some metadata to your data files, e.g.
|
||||||
|
|
||||||
|
```clojure
|
||||||
|
{:input some-data
|
||||||
|
:expected some-data
|
||||||
|
:meta {:name "name of data"
|
||||||
|
:description "describe what testcase is represented by this piec of data"
|
||||||
|
:link "https://add-some-link-here"}}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Generated Output
|
### Generated Output
|
||||||
|
|
Loading…
Reference in a new issue