add multifile support
This commit is contained in:
parent
86cd3727a0
commit
9eaf2818e1
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,16 @@
|
|||
(map #(str prefix "." % ".edn")
|
||||
(range 10)))))
|
||||
|
||||
(s/defn load-data-test-specs :- '(TestDataSpec)
|
||||
[file-prefix :- s/Str]
|
||||
(let [file-path (str file-prefix ".edn")]
|
||||
(try
|
||||
(read-test-data-spec (io/resource file-path))
|
||||
(catch IllegalArgumentException e
|
||||
(throw (ex-info (str "Could not find test spec on " file-path)
|
||||
{:message "Could not find test spec"
|
||||
:file-path file-prefix} e))))))
|
||||
|
||||
(s/defn load-test-data
|
||||
[file-prefix :- s/Str]
|
||||
(let [file-path (str file-prefix ".edn")]
|
||||
|
|
Loading…
Reference in a new issue