5 ms·
This isn't just a problem with Ruby. Our ObjC test suite for a project I work on takes about 10 min to run, too.
by Aqua_Geek 11y ago
This isn't just a problem with Ruby. Our ObjC test suite for a project I work on takes about 10 min to run, too.
- Ono-Sendai 11y agoOur main product has approximately 5400 unit tests, over ~150 files. The test suite runs on a single computer in about 14s. This is one of the advantages of using a fast language (C++) with multithreading :)
- aianus 11y agoNot exactly a fair comparison, because you have to compile the changed files first and link which I'm sure takes longer than 14s. On the other hand, using ruby I can have it continuously run the tests for the specific feature I'm working on without the long building step.
- Ono-Sendai 11y agoCompiling a changed file and linking takes about 5s.
- mappu 11y agoIs that the best case for changing a single cpp file, or the worst case for changing a header file shared across many translation units?
- Ono-Sendai 11y agoThat's changing a cpp file. Changing a widely used header file could take 1-2 mins for a full or nearly full rebuild.