Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

full_backtrace = true is unhelpful for beginners #1536

@tomstuart

Description

@tomstuart

Setting config.full_backtrace = true when running exactly one spec file is unhelpful for people who are just getting started with RSpec, because those people are likely to both:

  1. uncomment and use the generated spec_helper.rb defaults without knowing what they all mean, and
  2. only have a single spec file, which triggers this behaviour even if they’re running their “entire suite” with bundle exec rspec or similar.

To a beginner, this combination of circumstances makes it look like RSpec doesn’t have a backtrace cleaner, which makes its output much more intimidating and difficult to read.

It’s obviously subjective, but I feel that the generated spec_helper.rb would be better off without this line. As it stands, I have to handwavingly tell people to remove it when I’m teaching them about RSpec, and I’d rather not do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions