gazebo icon indicating copy to clipboard operation
gazebo copied to clipboard

chore: Force tests to fail for testing purposes

Open calvin-codecov opened this issue 8 months ago • 7 comments

Description

Forcing tests to fail for TESTING PURPOSES

Code Example

Notable Changes

Screenshots

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

calvin-codecov avatar Mar 11 '25 19:03 calvin-codecov

:x: 2 Tests Failed:

Tests completed Failed Passed Skipped
2973 2 2971 0
View the top 2 failed test(s) by shortest run time
src/ui/TopBanner/TopBanner.test.tsx > TopBanner > rendering base banner with only content > default variant > renders text content
Stack Traces | 0.00573s run time
Error: expect(element).not.toBeInTheDocument()

expected document not to contain element, found <span>
  Test default banner
</span> instead
 ❯ .../ui/TopBanner/TopBanner.test.tsx:61:26
src/ui/TopBanner/TopBanner.test.tsx > TopBanner > rendering base banner with only content > default variant > has the correct background color
Stack Traces | 0.0311s run time
Error: expect(element).not.toBeInTheDocument()

expected document not to contain element, found <div
  class="h-fit w-full px-4 py-2 lg:inline-flex lg:min-h-[38px] bg-ds-gray-primary"
  data-testid="top-banner-root"
>
  <div
    class="flex grow-0 items-center gap-1 pb-2 md:pb-0"
  >
    <span>
      Test warning banner
    </span>
  </div>
</div> instead
 ❯ .../ui/TopBanner/TopBanner.test.tsx:36:25

To view more test analytics, go to the Test Analytics Dashboard 📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

codecov[bot] avatar Mar 11 '25 19:03 codecov[bot]

:x: 2 Tests Failed:

Tests completed Failed Passed Skipped
1778 2 1776 0
View the top 2 failed tests by shortest run time
src/ui/TopBanner/TopBanner.test.tsx > TopBanner > rendering base banner with only content > default variant > renders text content
Stack Traces | 0.00573s run time
Error: expect(element).not.toBeInTheDocument()

expected document not to contain element, found <span>
  Test default banner
</span> instead
 ❯ .../ui/TopBanner/TopBanner.test.tsx:61:26
src/ui/TopBanner/TopBanner.test.tsx > TopBanner > rendering base banner with only content > default variant > has the correct background color
Stack Traces | 0.0311s run time
Error: expect(element).not.toBeInTheDocument()

expected document not to contain element, found <div
  class="h-fit w-full px-4 py-2 lg:inline-flex lg:min-h-[38px] bg-ds-gray-primary"
  data-testid="top-banner-root"
>
  <div
    class="flex grow-0 items-center gap-1 pb-2 md:pb-0"
  >
    <span>
      Test warning banner
    </span>
  </div>
</div> instead
 ❯ .../ui/TopBanner/TopBanner.test.tsx:36:25

To view more test analytics, go to the Test Analytics Dashboard :loudspeaker: Thoughts on this report? Let us know!

codecov-public-qa[bot] avatar Mar 11 '25 19:03 codecov-public-qa[bot]

Bundle Report

Changes will increase total bundle size by 174 bytes (0.0%) :arrow_up:. This is within the configured threshold :white_check_mark:

Detailed changes
Bundle name Size Change
gazebo-production-system 6.11MB 95 bytes (0.0%) :arrow_up:
gazebo-production-esm 6.19MB 79 bytes (0.0%) :arrow_up:

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 81 bytes 12.02kB 0.68%
assets/index-legacy.*.js 15 bytes 49.41kB 0.03%
assets/index-legacy.*.js -211 bytes 83.89kB -0.25%
assets/index-legacy.*.js 12 bytes 31.48kB 0.04%
assets/index-legacy.*.js 34 bytes 113.16kB 0.03%
assets/usePrefetchBranchDirEntry-legacy.*.js 11 bytes 6.95kB 0.16%
assets/useInvoices-legacy.*.js 11 bytes 3.25kB 0.34%
assets/ownerHelpers-legacy.*.js 142 bytes 2.19kB 6.92% :warning:

Files in assets/index-legacy.*.js:

  • ./src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx → Total Size: 2.61kB
view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js -233 bytes 89.12kB -0.26%
assets/index.*.js 12 bytes 32.09kB 0.04%
assets/index.*.js 54 bytes 125.76kB 0.04%
assets/index.*.js 15 bytes 53.59kB 0.03%
assets/index.*.js 71 bytes 12.55kB 0.57%
assets/usePrefetchBranchDirEntry.*.js 11 bytes 7.78kB 0.14%
assets/useInvoices.*.js 11 bytes 3.21kB 0.34%
assets/ownerHelpers.*.js 138 bytes 2.27kB 6.47% :warning:

Files in assets/index.*.js:

  • ./src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx → Total Size: 2.61kB

codecov[bot] avatar Mar 11 '25 19:03 codecov[bot]

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
ba416cff14c1014bc2e2fe5f7002b1392d67cfd4 Tue, 11 Mar 2025 19:08:22 GMT Expired Expired
fd5436512a8c31edb330926e9bd72d012bb70109 Tue, 11 Mar 2025 20:44:50 GMT Expired Expired
40ea6ec6fc017003d8c18090ad4c7e288f3cc29f Mon, 17 Mar 2025 19:03:49 GMT Expired Expired
90cb94916dc7059394e2c0a972fb9c871581e794 Mon, 17 Mar 2025 19:26:10 GMT Cloud Enterprise

codecov-releaser avatar Mar 11 '25 19:03 codecov-releaser

:white_check_mark: Sentry found no issues in your recent changes :white_check_mark:

seer-by-sentry[bot] avatar Mar 17 '25 18:03 seer-by-sentry[bot]

Bundle Report

Changes will increase total bundle size by 174 bytes (0.0%) :arrow_up:. This is within the configured threshold :white_check_mark:

Detailed changes
Bundle name Size Change
gazebo-staging-system 6.11MB 95 bytes (0.0%) :arrow_up:
gazebo-staging-esm 6.19MB 79 bytes (0.0%) :arrow_up:

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-staging-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 54 bytes 125.76kB 0.04%
assets/index.*.js -233 bytes 89.12kB -0.26%
assets/index.*.js 12 bytes 32.09kB 0.04%
assets/index.*.js 71 bytes 12.55kB 0.57%
assets/index.*.js 15 bytes 53.59kB 0.03%
assets/usePrefetchBranchDirEntry.*.js 11 bytes 7.78kB 0.14%
assets/useInvoices.*.js 11 bytes 3.21kB 0.34%
assets/ownerHelpers.*.js 138 bytes 2.27kB 6.47% :warning:

Files in assets/index.*.js:

  • ./src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx → Total Size: 2.61kB
view changes for bundle: gazebo-staging-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 15 bytes 49.41kB 0.03%
assets/index-legacy.*.js 12 bytes 31.48kB 0.04%
assets/index-legacy.*.js 81 bytes 12.02kB 0.68%
assets/index-legacy.*.js 34 bytes 113.16kB 0.03%
assets/index-legacy.*.js -211 bytes 83.89kB -0.25%
assets/usePrefetchBranchDirEntry-legacy.*.js 11 bytes 6.95kB 0.16%
assets/useInvoices-legacy.*.js 11 bytes 3.25kB 0.34%
assets/ownerHelpers-legacy.*.js 142 bytes 2.19kB 6.92% :warning:

Files in assets/index-legacy.*.js:

  • ./src/pages/PullRequestPage/PullCoverage/routes/CommitsTab/CommitsTable/createCommitsTableData.tsx → Total Size: 2.61kB

codecov-staging[bot] avatar Mar 17 '25 19:03 codecov-staging[bot]

:x: 2 Tests Failed:

Tests completed Failed Passed Skipped
2246 2 2244 0
View the top 2 failed test(s) by shortest run time
src/ui/TopBanner/TopBanner.test.tsx > TopBanner > rendering base banner with only content > default variant > renders text content
Stack Traces | 0.00573s run time
Error: expect(element).not.toBeInTheDocument()

expected document not to contain element, found <span>
  Test default banner
</span> instead
 ❯ .../ui/TopBanner/TopBanner.test.tsx:61:26
src/ui/TopBanner/TopBanner.test.tsx > TopBanner > rendering base banner with only content > default variant > has the correct background color
Stack Traces | 0.0311s run time
Error: expect(element).not.toBeInTheDocument()

expected document not to contain element, found <div
  class="h-fit w-full px-4 py-2 lg:inline-flex lg:min-h-[38px] bg-ds-gray-primary"
  data-testid="top-banner-root"
>
  <div
    class="flex grow-0 items-center gap-1 pb-2 md:pb-0"
  >
    <span>
      Test warning banner
    </span>
  </div>
</div> instead
 ❯ .../ui/TopBanner/TopBanner.test.tsx:36:25

To view more test analytics, go to the Test Analytics Dashboard 📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

codecov-staging[bot] avatar Mar 17 '25 19:03 codecov-staging[bot]