test-only not working from terminal, but working from inside sbt console

46 views
Skip to first unread message

Matthias Schlaipfer

unread,
Jun 18, 2013, 7:53:58 AM6/18/13
to simple-b...@googlegroups.com
I am trying to run only a certain test case using

    sbt test-only <name>

with the result of all available tests running.

However, when I'm in the sbt console

    > test-only <name>

seems to work fine. Is that a bug in sbt or expected behaviour? I am using version 0.12.3.

Harald Meland

unread,
Jun 18, 2013, 1:46:49 PM6/18/13
to simple-b...@googlegroups.com
On Tue, Jun 18, 2013 at 1:53 PM, Matthias Schlaipfer <m.schl...@gmail.com> wrote:
I am trying to run only a certain test case using

    sbt test-only <name>

with the result of all available tests running.

You want

  sbt "test-only <name>", i.e. pass the command test-only and its arguments as a single shell-argument to the sbt script.

--
Harald

Matthias Schlaipfer

unread,
Jun 19, 2013, 1:09:01 AM6/19/13
to simple-b...@googlegroups.com

Perfect, thank you!

 
Reply all
Reply to author
Forward
0 new messages