Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print all test result summaries at the end of a lein modules test run #37

Open
morganastra opened this issue Oct 30, 2017 · 2 comments
Open

Comments

@morganastra
Copy link

morganastra commented Oct 30, 2017

Currently, when you run lein modules test, the result summaries are printed after each modules' tests, which means you have to scroll through the output to find them. This gets tedious to do in large projects with lots of submodules. It would be great to have all of the test result summaries printed again at the very end of the test run, so you can tell at a glance what failed and in which modules. So, I imagine the end of the test output would look something like:

... many lines of test output ...

Module mod.foo: Ran 4 tests containing 10 assertions.
0 failures, 0 errors.
Module mod.bar: Ran 9 tests containing 34 assertions.
4 failures, 0 errors.
Module mod.baz: Ran 5 tests containing 28 assertions.
0 failures, 0 errors.

I would be happy to make a PR for this, just let me know if you have any pointers about how it should be done!

@jcrossley3
Copy link
Owner

Hi Morgan! I would be equally happy to accept a PR for this. :)
I haven't inhabited that code in a while, and IIRC it's fairly complex and brittle due to Leiningen itself. Do you have an approach in mind already?

@morganastra
Copy link
Author

I don't have an approach in mind yet, I would need to study the test runner code first. I'll post an update here when I have an idea of what needs to be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants