Fork me on GitHub
#testing
<
2016-08-15
>
abarylko18:08:46

is there a newbies channel for questions? or can I just ask here?

roberto18:08:12

there is a beginners channel (for general clojure questions)

roberto18:08:23

if you have questions about testing, you can ask them here

roberto18:08:44

a good rule of thumb for async communication: don’t ask to ask, just ask

abarylko20:08:19

perfect! Thanks @roberto!

abarylko20:08:46

I want to test an api endpoint to work with pagination

abarylko20:08:08

this test is going to be very similar for many resources

abarylko20:08:52

I was wondering if I can create a function that has multiple deftest

abarylko20:08:17

or what would be a good approach to do so

roberto20:08:11

I’m afraid I don’t understand. Some code snippets would help. I don’t think I’ve ever had the need to wrap deftest inside a function, btw.

abarylko20:08:08

I have an api with two endpoints customers and houses and I want to test that both of them behave as I expect when using pagination

abarylko20:08:40

I was wondering what would be the idiomatic way to share/reuse the same assertions for houses