mtkopone/sbt-scct — pull request #4 by ezh (2013-05-19 04:52:16+00:00)
Title: Skip cleanup hook if there are no tests. More verbose logging. Moved to package.

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