Skip to content

CH5: JUnitListener not run by SBT on test phase, junit.html not generated #10

@dusank

Description

@dusank

> show javaOptions
[debug] > show javaOptions
[debug] Evaluating tasks: analytics/test:javaOptions
[debug] Running task... Cancel: sbt.TaskCancellationStrategy$Null$@4db33a1e, check cycles: false
[info] List(-Dspecs2.outDir=D:\ws\sbt-in-action-examples\chapter5\analytics\target\generated\test-reports, -Djunit.output.file=D:\ws\sbt-in-action-examples\chapter5\analytics\target\generated\junit.html)
[success] Total time: 0 s, completed Oct 13, 2014 6:27:24 PM
[debug] > shell

> show testOptions
[debug] > show testOptions
[debug] Evaluating tasks: analytics/*:testOptions
[debug] Running task... Cancel: sbt.TaskCancellationStrategy$Null$@4db33a1e, check cycles: false
[info] List(Argument(Some(TestFramework(WrappedArray(org.specs2.runner.Specs2Framework, org.specs2.runner.SpecsFramework))),List(html)), Argument(Some(TestFramework(WrappedArray(org.scalacheck.ScalaCheckFramework))),List(-s, 500)), Argument(Some(TestFramework(WrappedArray(com.novocode.junit.JUnitFramework))),List (--run-listener=com.preownedkittens.sbt.JUnitListener)))

> test
[info] + Logic.matchLikelihood: OK, passed 500 tests.
[info] + Logic.matchLikelihood: OK, passed 500 tests.
[error] Test org.preownedkittens.LogicJavaTest.testKitten failed: expected:<1> but was:<0>
[error] Failed: Total 4, Failed 1, Errors 0, Passed 3
[error] Failed tests:
[error] org.preownedkittens.LogicJavaTest
[error] (analytics/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 5 s, completed Oct 13, 2014 6:43:55 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions