@blance what are you using to make your http requests?
@bensu: bensu cljs-http
@blance: what I've done in that case is to create a component
called MyService
which represents the service you are calling with http. That component has a number of protocols which represent the requests I'll be making in production
during testing, I pass another component
: MyMockService
which implements the same functions but returns the test data instead of making the http requests
by component
you mean https://github.com/stuartsierra/component?
or just regular namespace?
I mean stuartsierra/component. it could be any record
but component
lets you create complete test/production systems where you don't need to worry about (if production? ...)
like logic
oh cool. I only heard about it but haven't used it before. I'll take a loot at it.
Thanks alot!
I’m looking at starting to use expectations, is there a way to output the test results as a junit test or as TAP? I would like to feed the output into my Jenkins build