Tests execution order

284 views
Skip to first unread message

lester

unread,
Jun 11, 2011, 11:50:48 AM6/11/11
to simple-build-tool
Hello to all,

I would like to know whether it's possible to explicitly specify tests
execution order for 'test' task? Something similar to 'runOrder'
configuration setting for maven-surefire-plugin:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html.

Thank you,
Vladimir

lester

unread,
Jun 11, 2011, 12:39:03 PM6/11/11
to simple-build-tool
Forgot to mention that I was asking about SBT 0.10.0 version

Vladimir

Mark Harrah

unread,
Jun 12, 2011, 12:19:57 PM6/12/11
to simple-b...@googlegroups.com
Hi Vladimir,

It is not possible, no. Can you motivate the need for this? Is it to make failures more reproducible?

-Mark

> > Thank you,
> > Vladimir
>

lester

unread,
Jun 12, 2011, 4:02:09 PM6/12/11
to simple-build-tool
Thanks for reply, Mark!

So SBT runs tests in random order, right?

Of course no ;s) I just would like to know for sure that such a
setting doesn't exist.

Actually, I do agree that it's useless. Test shouldn't depend on
execution order.

Vladimir

On 12 июн, 20:19, Mark Harrah <dmhar...@gmail.com> wrote:
> Hi Vladimir,
>
> On Sat, 11 Jun 2011 09:39:03 -0700 (PDT)
>

Mark Harrah

unread,
Jun 12, 2011, 4:09:15 PM6/12/11
to simple-b...@googlegroups.com
On Sun, 12 Jun 2011 13:02:09 -0700 (PDT)
lester <leste...@gmail.com> wrote:

> Thanks for reply, Mark!
>
> So SBT runs tests in random order, right?

With parallel execution enabled (the default), the answer is not no. It probably isn't perfectly random, but it isn't deterministic either.

> Of course no ;s) I just would like to know for sure that such a
> setting doesn't exist.
>
> Actually, I do agree that it's useless. Test shouldn't depend on
> execution order.

It could be useful. Because it exists for surefire, I would think someone wants/needs it. I just don't know the exact reason.

-Mark

Reply all
Reply to author
Forward
0 new messages