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

Improve brittle assertion #3896

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Improve brittle assertion #3896

merged 2 commits into from
Sep 9, 2024

Conversation

TonyCTHsu
Copy link
Contributor

@TonyCTHsu TonyCTHsu commented Sep 6, 2024

What does this PR do?

#3890

The assertion such as (expect(out).to eq('ACTUAL:true') is brittle.

Our test should NOT be broken because of a warning that ostruct and fiddle are going to standard lib in 3.5 (should not effect 3.3).

Such failure pattern can apply to other gems as well when emitting additional output.

…-warning"

This reverts commit 5f6f052, reversing
changes made to ae50107.
@pr-commenter
Copy link

pr-commenter bot commented Sep 6, 2024

Benchmarks

Benchmark execution time: 2024-09-06 16:25:55

Comparing candidate commit d2bd61a in PR branch tonycthsu/improve-assertion with baseline commit f962063 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 23 metrics, 2 unstable metrics.

@TonyCTHsu TonyCTHsu added the dev/internal Other internal work that does not need to be included in the changelog label Sep 6, 2024
@TonyCTHsu TonyCTHsu marked this pull request as ready for review September 6, 2024 15:52
@TonyCTHsu TonyCTHsu requested a review from a team as a code owner September 6, 2024 15:52
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.85%. Comparing base (f962063) to head (d2bd61a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3896      +/-   ##
==========================================
- Coverage   97.86%   97.85%   -0.02%     
==========================================
  Files        1279     1279              
  Lines       76500    76499       -1     
  Branches     3745     3745              
==========================================
- Hits        74870    74859      -11     
- Misses       1630     1640      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TonyCTHsu TonyCTHsu merged commit a5881cb into master Sep 9, 2024
191 checks passed
@TonyCTHsu TonyCTHsu deleted the tonycthsu/improve-assertion branch September 9, 2024 08:00
@TonyCTHsu TonyCTHsu added this to the 2.4.0 milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/internal Other internal work that does not need to be included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants