Skip to content

Fix an error for the KnapsackPro::Formatters::TimeTracker formatter in RSpec when using Knapsack Pro Regular Mode and the .rspec file is not present.#265

Merged
ArturT merged 8 commits intomasterfrom
fix-time-tracker
Jun 27, 2024
Merged

Fix an error for the KnapsackPro::Formatters::TimeTracker formatter in RSpec when using Knapsack Pro Regular Mode and the .rspec file is not present.#265
ArturT merged 8 commits intomasterfrom
fix-time-tracker

Conversation

@ArturT
Copy link
Copy Markdown
Member

@ArturT ArturT commented Jun 26, 2024

Story

link to the internal story

Related

Description

  • Fix an error for the KnapsackPro::Formatters::TimeTracker formatter in RSpec when using Knapsack Pro Regular Mode and the .rspec file is not present.

  • Add a test on CI to reproduce the error. It ensures the bug won't happen again.

Checklist reminder

  • You added the changes to the UNRELEASED section of the CHANGELOG.md, including the needed bump (ie, patch, minor, major)
  • You follow the architecture outlined below for RSpec in Queue Mode, which is a work in progress (feel free to propose changes):
    • Pure: lib/knapsack_pro/pure/queue/rspec_pure.rb contains pure functions that are unit tested.
    • Extension: lib/knapsack_pro/extensions/rspec_extension.rb encapsulates calls to RSpec internals and is integration and e2e tested.
    • Runner: lib/knapsack_pro/runners/queue/rspec_runner.rb invokes the pure code and the extension to produce side effects, which are integration and e2e tested.

ArturT added 3 commits June 26, 2024 20:25
…which means rails_helper is not loaded and knapsack_pro lib is also not loaded. This verifies if the custom KnapsackPro::Formatters::TimeTracker formatter from knapsack_pro can be used before knapsack_pro is loaded

#263
@ArturT ArturT added the bug label Jun 26, 2024
@ArturT
Copy link
Copy Markdown
Member Author

ArturT commented Jun 26, 2024

Without this line 3eba3fa the CI build fails now. We are able to detect problems with KnapsackPro::Formatters::TimeTracker if it happens again.

I tried to reproduce the issue in Queue Mode but it occurs only in Regular Mode so I added integration test in CI pipeline for regular mode only.

@ArturT ArturT merged commit 727b3d0 into master Jun 27, 2024
@ArturT ArturT deleted the fix-time-tracker branch June 27, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants