Merge pull request #1 from DomainDrivenArchitecture/specify-search-places

Specify search places in error
This commit is contained in:
M.Jerger 2019-05-31 08:16:23 +02:00 committed by GitHub
commit cf62e4f386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,10 +62,11 @@
(s/defn load-data-test-specs :- [RuntimeTestDataSpec]
[name-key :- s/Keyword]
(let [data-test-specs (filter some?
(map load-data-test-spec (data-test-spec-file-names name-key)))]
(let [locations (data-test-spec-file-names name-key)
data-test-specs (filter some? (map load-data-test-spec locations))]
(if (empty? data-test-specs)
(throw (ex-info (str "Could not find test spec on " name-key)
{:message "Could not find test spec"
:name-key name-key}))
:name-key name-key
:locations locations}))
(into [] data-test-specs))))