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

Add component tests #872

Merged
merged 5 commits into from
Sep 10, 2024
Merged

Add component tests #872

merged 5 commits into from
Sep 10, 2024

Conversation

BenjaminCharmes
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes commented Sep 4, 2024

Related to #794

I've started writing tests on some components, trying to test as many things as possible. Feedback welcome.

Components covered by test:

  • NotificationDot
  • UserBubble
  • UserBubbleLogin (It's just UserBubble with NotificationDot, so maybe doesn't need so much tests)
  • Navbar
  • StyledBlockInfo
  • StyledBlockHelp
  • FormattedItemName

@BenjaminCharmes BenjaminCharmes changed the title Bc/components test Component testing Sep 4, 2024
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.12%. Comparing base (aecdc32) to head (fdbdd52).
Report is 43 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #872   +/-   ##
=======================================
  Coverage   68.12%   68.12%           
=======================================
  Files          62       62           
  Lines        3890     3890           
=======================================
  Hits         2650     2650           
  Misses       1240     1240           

Copy link

cypress bot commented Sep 4, 2024

datalab    Run #2382

Run Properties:  status check passed Passed #2382  •  git commit d702e88eca ℹ️: Merge fdbdd522770ba43c2198c0186845fe004f86ac6e into aecdc32b98e9d5d0182a528236cd...
Project datalab
Branch Review bc/components_test
Run status status check passed Passed #2382
Run duration 06m 40s
Commit git commit d702e88eca ℹ️: Merge fdbdd522770ba43c2198c0186845fe004f86ac6e into aecdc32b98e9d5d0182a528236cd...
Committer Benjamin Charmes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 393
View all changes introduced in this branch ↗︎

@BenjaminCharmes BenjaminCharmes linked an issue Sep 5, 2024 that may be closed by this pull request
@BenjaminCharmes BenjaminCharmes removed a link to an issue Sep 5, 2024
ml-evs
ml-evs previously approved these changes Sep 6, 2024
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thanks @BenjaminCharmes! I haven't reviewed each test in great detail but will have a go at extending them myself.

@ml-evs ml-evs changed the title Component testing Add compenent tests Sep 6, 2024
@BenjaminCharmes BenjaminCharmes changed the title Add compenent tests Add component tests Sep 6, 2024
@ml-evs ml-evs marked this pull request as ready for review September 6, 2024 13:29
@ml-evs ml-evs enabled auto-merge (rebase) September 6, 2024 13:29
@ml-evs ml-evs merged commit 29af490 into main Sep 10, 2024
19 of 20 checks passed
@ml-evs ml-evs deleted the bc/components_test branch September 10, 2024 13:50
@ml-evs ml-evs added testing For issues/PRs that change how the package is tested javascript Pull requests that update Javascript code labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code testing For issues/PRs that change how the package is tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants