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

Skip cleanup hook if there are no tests. More verbose logging. Moved to package. #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ezh
Copy link

@ezh ezh commented May 19, 2013

I moved plugin to package namespace. Debugger and code validator of the Eclipse is more friendly for standard layout. Sure that other development environments will more friendly too.

Also I added more verbose logging. It is not nice if SBT hangs without any messages on intermediate subproject without tests.

Also add condition that skip cleanup if there are no tests.

If there are no tests, now it looks like:

scct-test:test
[debug]
[debug] Initial source changes:
[debug] removed:Set()
...
[debug] Subclass fingerprints: Stream((org.scalatest.Suite,false,org.scalatest.tools.ScalaTestFramework$$anon$1@2f32d1f2), ?)
[debug] Annotation fingerprints: Stream((org.scalatest.WrapWith,false,org.scalatest.tools.ScalaTestFramework$$anon$2@31757f13), ?)
[debug] scct: [Digi-Lib] No tests found. Skip SCCT setup hook.
[debug] scct: [Digi-Lib] No tests found. Skip SCCT cleanup hook.
[info] No tests to run for scct-test:test
[success] Total time: 0 s, completed 19.05.2013 8:21:14

And if there are tests:

[info] Passed: : Total 9, Failed 0, Errors 0, Passed 9, Skipped 0
[debug] scct: [Digi-Lib] Waiting for coverage report generation.
scct: [Digi-Lib] Generating coverage report.
[debug] scct: [Digi-Lib] Cleanup SCCT environment
[debug] Passed tests:

If you are not interested in theres changes please give me a note.

Thank you,
Alexey

@ezh
Copy link
Author

ezh commented May 19, 2013

Hooks are created at every tests execution. They support dynamic removal/addition of the tests.

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

Successfully merging this pull request may close these issues.

1 participant