Fork me on GitHub
#clojure-uk
<
2017-03-15
>
kevin4214:03:17

How slow are the tests in your current project? Mine are taking more than an hour to run the full suite locally!

glenjamin14:03:45

last project was approx 3 seconds

glenjamin14:03:08

generally I try and keep it <10 seconds

kevin4214:03:56

Do you have any integration tests?

glenjamin14:03:24

no, in that scenario i mostly chose not to to keep my test time down

glenjamin14:03:37

i’ve had some useful integration tests and still been under 10 seconds though

mccraigmccraig14:03:37

our full CI test suite, including provisioning a DB, migrating it, and running tests takes around 10 mins... if i run locally it's about 7 or 8 mins, the bulk of that is a couple of individual tests which create large sets of objects in the db and test those sets are handled consistently, and a fair bit in clojure startup times because the project is split into modules

kevin4214:03:02

That's a good idea thanks. The reason I'm asking about test time is that I'm working for the first time in a project where tests are almost unusable. And discovering the codebase without relying on tests is a pain.

glenjamin14:03:10

yeah, if having a fast test suite isn’t made a concrete goal, it generally becomes slow and annoying IME

dominicm15:03:46

kevin42 I'd suggest starting at the equivalent of the system if it exists, and see how the project has hierarchy. Then investigate the smaller "supporting" components first. From there move onto the major components.

kevin4215:03:31

what do you mean by "equivalent of the system"?

dominicm15:03:37

@kevin42 Sorry I meant "system, or it's equivalent". Basically going via the component system if it exists.

kevin4215:03:48

No worries, thanks to you. The system tries to load the whole app and does not try to load some on demand (like a queue system).

otfrom20:03:21

thomas good luck today

thomas21:03:47

Thank you @otfrom . Exit polls looked OK. Ie. Wilders didn't win too much nor has he got the biggest party.

thomas21:03:12

I suspect that is good news these days

otfrom21:03:50

thomas I'll take what I can get