testing

Testing tools, testing philosophy & methodology...
2016-07-01T04:41:17.000029Z

@blance what are you using to make your http requests?

2016-07-01T16:20:57.000030Z

@bensu: bensu cljs-http

2016-07-01T16:36:41.000031Z

@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

2016-07-01T16:37:28.000032Z

during testing, I pass another component: MyMockService which implements the same functions but returns the test data instead of making the http requests

2016-07-01T16:38:06.000033Z

by component you mean https://github.com/stuartsierra/component?

2016-07-01T16:39:14.000035Z

or just regular namespace?

2016-07-01T16:39:29.000036Z

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

2016-07-01T16:40:39.000040Z

oh cool. I only heard about it but haven't used it before. I'll take a loot at it.

2016-07-01T16:40:42.000041Z

Thanks alot!

jjcomer 2016-07-01T17:05:44.000043Z

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