Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure RSpec --only-failures flag #107

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

Patrycja-Nowak
Copy link
Contributor

Changes

  • Configure rspec's --only-failures flag

  • This config stores information about passing/failing tests in examples.txt and allows to run:

    • rspec --only-failures (that only runs the failed tests from the previous run)
    • rspec --next-failure (that runs the next failed test from the previous run)

Provide any additional context needed to understand the PR.

Ticket

N/A

Before submitting have you:

  • Included a link to any relevant ticket
  • Included links to any github issues
  • Prefix the title with the PR type (Feature, Bugfix, Documentation, Chore)

After submitting remember to:

  • Mark the ticket as ready for review
  • Include the PR on the ticket
  • Assign a single reviewer

This config stores information about passing/failing tests in examples.txt
And allows to run `rspec --only-failures` that only runs the failed tests
From the previous run
Copy link
Collaborator

@JonathanAndrews JonathanAndrews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PatMiekina. One small tweak

spec/dummy-app/spec/spec_helper.rb Show resolved Hide resolved
Base automatically changed from rebuild-dummy-app-rails7 to master November 24, 2023 13:23
Copy link
Collaborator

@JonathanAndrews JonathanAndrews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Patrycja-Nowak Patrycja-Nowak merged commit f35bf28 into master Nov 24, 2023
1 check passed
@Patrycja-Nowak Patrycja-Nowak deleted the configure-rspec-only-failures-flag branch November 24, 2023 15:21
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