But how? Put it inside each fact? I'm not sure how to ensure that the
function runs before the tests run.





On Wed, Mar 6, 2013, at 08:39 PM, Aaron Steele wrote:

  In test/gulo/views_test.clj:
> +    (for [d record-data]
> +      (p/to-pail pail-path (<- [?d] (d ?d))))))
> +
> +(defn delete-directory
> +  [path]
> +  (let [fs (file-seq (clojure.java.io/file path))]
> +    (for [f (reverse fs)]
> +      (clojure.java.io/delete-file f))))
> +
> +(defn query-runner
> +  [fun k pail-path]
> +  (let [tap (p/split-chunk-tap pail-path (k stats-paths))]
> +    (fun tap)))
> +
> +;; TODO: ensure sink-test-records runs before tests
> +(sink-test-records PAIL-PATH TEST-RECORDS)

  create test data before running tests. maybe?

  —

Reply to this email directly or [1]view it on GitHub.
[RkOat9Y1_FdXL0zywX1whluFfTlX5rrOPZ4JdaBtNJpxB24pbbYACSXgfAUO6Fgi.gif]

References

1. https://github.com/VertNet/gulo/pull/46/files#r3274907