added some todos & organize input files
This commit is contained in:
parent
b6267de995
commit
0dd940f820
4 changed files with 7 additions and 3 deletions
|
@ -32,6 +32,10 @@
|
|||
(defmacro defdatatest [name & body]
|
||||
`(do
|
||||
(ct/deftest ~name
|
||||
(let [testdata (sut/read-data (io/resource "should-test-with-data-macro-version.edn"))
|
||||
;TODO-1: bring macro to work
|
||||
;TODO-2: crate filename out of package/namespace/test-name.edn
|
||||
;TODO-3: enable more than one test-data-set with optional infix .##
|
||||
(let [testdata (sut/read-data
|
||||
(io/resource "data_test_test/should-test-with-data-macro-version.edn"))
|
||||
{:keys [input expectation]} testdata]
|
||||
~body))))
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
)
|
||||
|
||||
(deftest should-test-with-data-explicit-version
|
||||
(let [testdata (sut/read-data (io/resource "should-test-with-data-explicit-version.edn"))
|
||||
(let [testdata (sut/read-data (io/resource "data_test_test/should-test-with-data-explicit-version.edn"))
|
||||
{:keys [input expectation]} testdata]
|
||||
(is (= expectation
|
||||
input))))
|
||||
|
|
Loading…
Reference in a new issue