Cat Companion celebrates passing tests and cheers failed runs#690
Open
Thundercloud12 wants to merge 3 commits into
Open
Cat Companion celebrates passing tests and cheers failed runs#690Thundercloud12 wants to merge 3 commits into
Thundercloud12 wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add interactive Cat Companion notifications with a meow sound and emoji reactions upon test suite completion.
Motivation
During long competitive programming sessions, getting feedback on test results can feel monotonous. Adding a playful Cat Companion that reacts to test results makes the environment more engaging. It provides immediate visual and auditory feedback—celebrating successes and encouraging through failures—to help keep morale high.
What changed
numFinishedvariable inApp.tsxto track completed test cases and passed it to theCatCompanioncomponent.CatCompanion.tsxto detect when the entire test suite has finished executing.playMeow()sound effect and spawn a trophy when all tests pass successfully.😿,💪,🩹,💔) when the test suite finishes but contains failed test cases.Validation
npm run webpack-productionsuccessfully.Notes
This feature adds a bit of fun and immediate feedback to the testing process by providing visual and audio reactions when a test run completes. Successful runs are celebrated with a trophy and meow sound, while failed runs receive a random encouraging emoji.