Add support for running specs in a random order #171

Closed
jamesarosen opened this Issue Jan 4, 2012 · 12 comments

Comments

Projects
None yet
7 participants

Randomizing the test order can help reveal inter-spec dependencies (like stepping on globals without cleaning up).

Contributor

infews commented Feb 11, 2012

Do you have an implementation suggestion? Or is this just a feature request?

It was meant as a discussion-opener. I'm happy to work on it if you're interested in accepting such a patch. I'd also appreciate any hints you might have on where to start.

👍

+1 Also a outside runner like Maven could execute each single test one by one in an automated way. Like this we would get immediately all the inter-spec dependencies error instead of waiting for randomness to find them.

paulRbr commented Apr 26, 2013

+1

Just don't drop serial execution away accidentally, cause I rely on it writing tests in given-when-then style.

paulRbr commented Apr 26, 2013

What do you mean by serial execution? The point of this request is to have a random order of spec execution.

The way tests are run right now.

it('test1', function(){});
it('test2', function(){});

The order is test1, then test2. Don't drop it;

paulRbr commented Apr 27, 2013

Im not sure I want this. The point is to have each spec runnable
independently.
Em 27/04/2013 10:25, "Yaroslav Ulanovych" notifications@github.com
escreveu:

The way tests are run right now.

it('test1', function(){});
it('test2', function(){});

The order is test1, then test2. Don't drop it;


Reply to this email directly or view it on GitHubhttps://github.com/pivotal/jasmine/issues/171#issuecomment-17112587
.

Just make it configurable.

Contributor

infews commented May 27, 2013

We have a policy of closing Feature Requests after we log them into our public backlog at Pivotal Tracker.

Here is the story so you can follow progress.

We'll look at this again after 2.0 ships.

@infews infews closed this May 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment