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

chore: Force tests to fail for testing purposes #3806

Open
wants to merge 2 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
1778 2 1776 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.00514s 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.0287s 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
1216 2 1214 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.00514s 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.0287s 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

Bundle size has no change ✅

@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 Cloud Enterprise

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