Skip to content

chore: Force tests to fail for testing purposes #3806

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

calvin-codecov
Copy link
Contributor

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.

Copy link

codecov bot commented Mar 11, 2025

❌ 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.

Copy link

codecov-public-qa bot commented Mar 11, 2025

❌ 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
📢 Thoughts on this report? Let us know!

Copy link

codecov bot commented Mar 11, 2025

Bundle Report

Changes will increase total bundle size by 174 bytes (0.0%) ⬆️. This is within the configured threshold ✅

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

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% ⚠️

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% ⚠️

Files in assets/index.*.js:

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

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Mar 11, 2025

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
ba416cf Tue, 11 Mar 2025 19:08:22 GMT Expired Expired
fd54365 Tue, 11 Mar 2025 20:44:50 GMT Expired Expired
40ea6ec Mon, 17 Mar 2025 19:03:49 GMT Expired Expired
90cb949 Mon, 17 Mar 2025 19:26:10 GMT Cloud Enterprise

Copy link
Contributor

sentry-autofix bot commented Mar 17, 2025

✅ Sentry found no issues in your recent changes ✅

@codecov-staging
Copy link

codecov-staging bot commented Mar 17, 2025

Bundle Report

Changes will increase total bundle size by 174 bytes (0.0%) ⬆️. This is within the configured threshold ✅

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

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% ⚠️

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% ⚠️

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

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

@codecov-staging
Copy link

codecov-staging bot commented Mar 17, 2025

❌ 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.

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