Clojurians
#testing
<
2016-03-09
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

dialelo09:03:14

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

gadfly36116:03:28

@dialelo this looks very useful, thank you!

dialelo17:03:16

you're welcome!

sdroadie20:03:43

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

sdroadie20:03:19

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.

sdroadie20:03:49

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

sdroadie20:03:00

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

nberger20:03:26

@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))