testing

Testing tools, testing philosophy & methodology...
plexus 2018-10-04T08:35:55.000100Z

@xiongtx you can also do this in Kaocha by writing your own plugin

plexus 2018-10-04T08:36:22.000100Z

(ns my.plugins
  (:require [kaocha.plugin :as p]))

(p/defplugin my.plugins/global-setup
  (pre-run [test-plan]
    (my-setup)
    test-plan)

  (post-run [result]
    (my-teardown)
    result))
command line:
bin/kaocha --plugin my.plugins/global-setup
or kaocha config (`tests.edn`)
#kaocha/v1
{:plugins [:my.plugins/global-setup]}