Closed GoogleCodeExporter closed 9 years ago
> To integrate into a build server, such as Hudson, it is desirable to produce
test report in a manner compatible with the Maven Surefire plugin.
This is a very good idea indeed.
> I'm not sure of the cleanest way to expose as configuration to the SBT build
whether and where to output surefire XML. Should these come in as test options?
At the moment, I can create html reports from sbt in specs2 by passing:
- the output directory as a per project -D option (because I suppose it should
be fairly stable)
- html as a command line option. The issue with this is that passing
command-line options only work with "test-only" and not with "test" (AFAIK).
Maybe we could ask Mark for a new feature?
Original comment by etorrebo...@gmail.com
on 29 Dec 2010 at 6:14
i'm happy to add them to testOption in the build config file. Just need to
intepret them in the right place within specs.
Original comment by jzaugg
on 29 Dec 2010 at 6:39
The thing with testOptions is that you have to declare them in your project
file. There's no way to write:
sbt> test // run all tests in sbt console
sbt> test -- junit-report // run all tests and create a junit-report
Maybe the easiest thing is to create a test-junit-report action?
Original comment by etorrebo...@gmail.com
on 11 Jan 2011 at 10:17
And would that action would append additional test options before running specs?
Original comment by jzaugg
on 11 Jan 2011 at 10:21
Yes it would pass any more options after "--" to the test runner.
Original comment by etorrebo...@gmail.com
on 20 Jan 2011 at 4:12
BTW, I'm sorry but I didn't see the notification of your comment for the past
10 days.
That email may have ended in my spam, this happens sometimes.
Original comment by etorrebo...@gmail.com
on 20 Jan 2011 at 4:13
I think I can close this issue now, right?
You can pass options to sbt 0.10 by writing: test-only -- options, without
specifying a class name, this will run all the specs.
Original comment by etorrebo...@gmail.com
on 26 Aug 2011 at 9:19
Original issue reported on code.google.com by
jzaugg
on 27 Dec 2010 at 3:12