Individual Spec reports do not show for integration tests

15 views
Skip to first unread message

sili...@gmail.com

unread,
Oct 20, 2016, 12:24:08 PM10/20/16
to scalatest-users
Hi,

I noticed that the integration test report outputs the summary of the run, but omits the individual specs & test cases. The tests themselves log as well.

Note, that this works for the regular unit tests run in the sbt test config, only the integration tests in the it config are affected.  Any ideas would be appreciated

Example:

09:04:05.959 [pool-1-thread-1-ScalaTest-running-PaymentsSpec] INFO  c.t.b.p.s.PaymentsServiceImpl - (Some spec logging statement)
09:04:05.984 [ForkJoinPool-2-worker-13] INFO  c.t.b.p.w.s.ClearingService - (Some other logging statement)
[info] ScalaCheck
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] ScalaTest
[info] Run completed in 23 seconds, 876 milliseconds.
[info] Total number of tests run: 2
[info] Suites: completed 3, aborted 0
[info] Tests: succeeded 2, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.


IntegrationSuite set up

class IntegrationSuite extends Suite with ScalaFutures with BeforeAndAfterAll {
thisSuite =>

override def nestedSuites: IndexedSeq[Suite] = Vector(
new SpecOne(components),
new SpecTwo(components)
)

@DoNotDiscover
class SpecOne(val components: RuntimeComponents) extends AsyncWordSpecLike with MustMatchers with BeforeAndAfterAll with ScalaFutures with IntegrationFixtures with Loggable {

"SomeService" when {

"doing something" should {

"do it correctly" in {
// simplified for the example
         Future { 1 must ===(1) }
      }
}
}
}

Some possibly relevant build.sbt settings

fork in IntegrationTest := true

Project("server", file("server")).
dependsOn(client).
configs(IntegrationTest).
settings(commonSettings: _*).
settings(Defaults.itSettings : _*).
enablePlugins(plugins.JUnitXmlReportPlugin).
enablePlugins(JavaServerAppPackaging).
enablePlugins(RpmPlugin)



sili...@gmail.com

unread,
Nov 17, 2016, 1:39:41 PM11/17/16
to scalatest-users
bump.. 
Reply all
Reply to author
Forward
0 new messages