-
-
Notifications
You must be signed in to change notification settings - Fork 762
Conversation
Is this a correct approach? |
I wonder if it should even be more succinct, because 99% (I guess) of the times the details about pending specs don't matter.
Or maybe like the profiler output:
Both are visually distinctive from failures, but just removing the backtrace like above does not make it sufficiently different for me to realize it's not a failure. |
I like this output, we don't minimise failures to single lines in the default formatters and we shouldn't here either but we could go further and make this setting something like: |
We don't seem to refer to pending as failures. What do you think of calling this setting just PS Except in "Failures listed here are expected".
|
Theres a bit of mixed terminiology within our code base, as prior to 3.x we only had pending to mean "some spec yet to pass, maybe, so skip" but 3.x split this into "Pending specs are expected failures, they are verified to fail." and "skipped specs are skipped" as far as I know skipped specs already don't raise a failure like case? |
We seem to mark skipped examples as pending, too. And they appear as such contributing to the number of pending examples in the footer:
But yes, they are not run and won't fail the build (if they would pass). |
8510ae1
to
ab30c0c
Compare
This is looking good but I'd love a cucumber feature |
My thought exactly. Cracked my teeth with trying to cover this change with specs. |
1818d9d
to
c669cbc
Compare
We have a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pirj Can you rebase this? If it goes green as is when rebased please merge and add a changelog
c669cbc
to
9186c76
Compare
Released in 3.13.0, apologies it has taken so long. |
* master: (53 commits) [NO-TICKET] Re-enable ASAN memory leaks testing [PROF-9470] Enable "heap clean after GC" profiler optimization by default [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/11724221529 Force rspec >= 3.13 to pick up rspec/rspec-core#2957 Minor style fix Add missing assertions/stubs to avoid noise in test output Hide skipped/pending tests from rspec output by default Revert "Disable crashtracking by default" Lockfile updates for libdatadog upgrade [NO-TICKET] Upgrade to libdatadog 14.1 remove unused rspec integration app Update lockfiles for release 2.6.0 Bump version 2.5.0 to 2.6.0 Add 2.6.0 to CHANGELOG.md Remove unintentional libddwaf require Specify gem version for macos test Address PR comments Address new Ruby 3.4 error message changes Add macos and yjit tests [NO-TICKET] Relax profiling CODEOWNERS configuration ...
fixes #2956
🎉