Skip to content

Add ability to log spec test order to a file#709

Merged
slippycheeze merged 1 commit intopuppetlabs:masterfrom
cprice404:feature/master/log_spec_order
Apr 25, 2012
Merged

Add ability to log spec test order to a file#709
slippycheeze merged 1 commit intopuppetlabs:masterfrom
cprice404:feature/master/log_spec_order

Conversation

@cprice404
Copy link

This commit tweaks the spec_helper to give it the
ability to log the spec test order to a file. It
will only log the order if you have set the
environment variable "LOG_SPEC_ORDER", e.g.:

LOG_SPEC_ORDER=true rspec spec

This will be useful when using Nick L.'s bisect
script to identify order-dependent spec failures.
It should probably be enabled on all of our
Jenkins jobs, and would potentially allow us to
start running them with the random order flag
enabled.

This commit tweaks the spec_helper to give it the
ability to log the spec test order to a file.  It
will only log the order if you have set the
environment variable "LOG_SPEC_ORDER", e.g.:

LOG_SPEC_ORDER=true rspec spec

This will be useful when using Nick L.'s bisect
script to identify order-dependent spec failures.
It should probably be enabled on all of our
Jenkins jobs, and would potentially allow us to
start running them with the random order flag
enabled.
slippycheeze added a commit that referenced this pull request Apr 25, 2012
Add ability to log spec test order to a file
@slippycheeze slippycheeze merged commit df8db7c into puppetlabs:master Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants