Configure RSpec #116

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

croaky commented Oct 20, 2012

  • Use --profile flag to display slowest-running specs.
  • Use --format documentation flag to confirm specs are readable.
  • Remove --drb flag because Spork should be replaced by Zeus.
  • Re-organize methods so generate_rspec only generates RSpec and
    configure_rspec only configures RSpec.
Configure RSpec
* Use `--profile` flag to display slowest-running specs.
* Use `--format documentation` flag to confirm specs are readable.
* Remove `--drb` flag because Spork should be replaced by Zeus.
* Re-organize methods so `generate_rspec` only generates RSpec and
  `configure_rspec` only configures RSpec.
Owner

jferris commented Oct 20, 2012

Does --profile affect the performance of the test suite?

I prefer to use documentation when running individual specs, but progress when running rake. This is because thousands of specs in the documentation format just flood your terminal, making it hard to see if there are failures so far and how far along the test suite is.

I think the --drb change belongs in your pull request about zeus.

Contributor

croaky commented Oct 20, 2012

Does --profile affect the performance of the test suite?

I haven't timed it but can give it a try. Anecdotally, it does not seem to.

I prefer to use documentation when running individual specs

Yeah, that's really when I want the documentation formatter. Is there a better place to put that which scopes it only to isolated test runs? On the s alias in dotfiles, maybe?

making it hard to see if there are failures

It looks like there's a fail_fast option. Might be cool to try:

https://www.relishapp.com/rspec/rspec-core/v/2-0/docs/configuration/fail-fast

Owner

jferris commented Oct 22, 2012

I have documentation on in my rspec alias:

alias s="bundle exec rspec --format=documentation"

I use fail_fast sometimes, but I don't think I'd want it on by default.

Contributor

croaky commented Oct 23, 2012

Okay, cool. Leaving this an addition of --profile and an internal renaming. Keeping --drb. Will add --format=documentation to dotfiles.

@croaky croaky closed this Oct 23, 2012

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