File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 86
86
:result :errored
87
87
:errors [(.getMessage ex)]})))
88
88
89
- (defn run-test-cases [test-cases query-variables endpoint reporter]
89
+ (defn run-test-cases [test-cases query-variables endpoint]
90
+ (map #(run-test-case % query-variables endpoint) test-cases))
91
+
92
+ (defn report-test-cases [test-cases query-variables endpoint reporter]
90
93
(let [summary (reduce (fn [summary [test-index test-case]]
91
94
(let [{:keys [result] :as test-result} (run-test-case test-case query-variables endpoint)]
92
95
(reporting/report-test-result! reporter (assoc test-result :number (inc test-index)))
128
131
suites-to-run (:arguments result)
129
132
test-cases (tc/suite-tests suites suites-to-run)
130
133
test-reporter (reporting/->ConsoleTestReporter )]
131
- (run -test-cases test-cases query-variables endpoint test-reporter))
134
+ (report -test-cases test-cases query-variables endpoint test-reporter))
132
135
(throw (ex-info " Invalid command line arguments" {:type :invalid-cli-arguments
133
136
:cli-result result})))))
134
137
You can’t perform that action at this time.
0 commit comments