testing

Testing tools, testing philosophy & methodology...
2016-03-09T09:10:49.000049Z

@gadfly361: not sure if it'll be useful but here's an example https://github.com/funcool/httpurr/blob/master/test/httpurr/test/client_test.cljs

2016-03-09T09:11:14.000051Z

since the HTTP client uses XhrIO under the hood, I use goog.testing.net.XhrIo

gadfly361 2016-03-09T16:58:28.000053Z

@dialelo this looks very useful, thank you!

2016-03-09T17:00:16.000054Z

you're welcome!

2016-03-09T20:04:43.000056Z

Hey all, I've got a really weird issue I'm hoping someone can help me solve.

2016-03-09T20:05:19.000057Z

I'm using migratus, and in testing, I've set up a fixture to setup a test database. The weird bit is if I run this fixture, my tests won't run.

2016-03-09T20:05:49.000058Z

Anyone have any ideas as to why that might happen? I'm using the migrate function, and my config map is correct.

2016-03-09T20:07:00.000059Z

The actual code looks like this: (use-fixtures :once (fn [f] (migratus/migrate config))

nberger 2016-03-09T20:24:26.000060Z

@sdroadie: your fixture fn must call f, which is the actual test, so you should have something like (use-fixtures :once (fn [f] (migratus/migrate config) (f))