File tree Expand file tree Collapse file tree
src/practitest_firecracker Expand file tree Collapse file tree Original file line number Diff line number Diff line change 105105 additional-testset-fields)
106106 (map :id tests))))
107107
108- (defn is-failed-step [use-test-step desc failure-detail]
109- (and use-test-step (not (nil? failure-detail)) (string/includes? failure-detail desc)))
108+ (defn is-failed-step [only-failed-steps desc failure-detail]
109+ (or (not only-failed-steps)
110+ (and (not (nil? failure-detail)) (string/includes? failure-detail desc))))
110111
111112(defn sf-test-case->run-step-def [options params test-case]
112113 (let [description (or (:description test-case) (sf-test-case->pt-step-description options test-case))
116117 (or (:pt-test-step-name test-case)
117118 (sf-test-case->pt-step-name options test-case)))
118119 :description new-desc
119- :actual-results (when (is-failed-step (:only-failed-steps options) new-desc (str (:failure-message test-case) \newline (:failure-detail test-case))) (str (:failure-message test-case) \newline (:failure-detail test-case)))
120+ :actual-results (when
121+ (is-failed-step
122+ (:only-failed-steps options)
123+ new-desc
124+ (str (:failure-message test-case) \newline (:failure-detail test-case)))
125+ (str (:failure-message test-case) \newline (:failure-detail test-case)))
120126 :status (case (when (is-failed-step (:only-failed-steps options) new-desc (:failure-detail test-case)) (:failure-type test-case))
121127 :failure " FAILED"
122128 :skipped " N/A"
You can’t perform that action at this time.
0 commit comments