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

[#12588] Added unit tests for ExtensionConfirmModalComponent - average coverage 98% #12622

Merged

Conversation

MatheuMa
Copy link
Contributor

@MatheuMa MatheuMa commented Oct 25, 2023

Part of #12588

Outline of Solution
Added unit tests for ExtensionConfirmModalComponent, missed three branches, average coverage 98 - 99%

Copy link
Contributor

@cedricongjh cedricongjh left a comment

Choose a reason for hiding this comment

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

some changes, and also it appears that onConfirm, setInstructorRowData , setInstructorColumnData, setInstructorTableData is not being tested (while these are tested through snapshots, it would be good to test via code as well)

…rm-modal.component.spec.ts


Thank you for fixing this!

Co-authored-by: Cedric Ong <67156011+cedricongjh@users.noreply.github.com>
@MatheuMa
Copy link
Contributor Author

what happened? I just accpet your change of a single string? I think we didn't do anything wrong?

@cedricongjh
Copy link
Contributor

what happened? I just accpet your change of a single string? I think we didn't do anything wrong?

no worries, our unstable E2E tests fail sometimes when it should not, i'll be re-running it and it should pass!

@cedricongjh cedricongjh added the s.ToReview The PR is waiting for review(s) label Oct 25, 2023
@MatheuMa
Copy link
Contributor Author

MatheuMa commented Oct 25, 2023

I added more tests according to your advice, and also added tests for setStudentRowData , setStudentColumnData, setStudentTableData! By the way this is my first issue, I did learned from this experience, thank you for your review!

Copy link
Contributor

@cedricongjh cedricongjh left a comment

Choose a reason for hiding this comment

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

great to hear that the experience was fruitful for you!

just a few more changes!

Copy link
Contributor

@cedricongjh cedricongjh left a comment

Choose a reason for hiding this comment

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

lgtm! thank you for your contribution to TEAMMATES

@cedricongjh cedricongjh added s.FinalReview The PR is ready for final review and removed s.ToReview The PR is waiting for review(s) labels Oct 28, 2023
@cedricongjh cedricongjh self-assigned this Oct 28, 2023
@MatheuMa
Copy link
Contributor Author

I really appretiate your patience for my code and comments!!!

@nusoss-bot
Copy link

Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢
Hope someone can get it to move forward again soon...

1 similar comment
@nusoss-bot
Copy link

Folks, This PR seems to be stalling (no activities for the past 7 days). 🐌 😢
Hope someone can get it to move forward again soon...

@nusoss-bot
Copy link

Folks, This PR seems to be stalling (no activities for the past 11 days). 🐌 😢
Hope someone can get it to move forward again soon...

Copy link
Contributor

@weiquu weiquu left a comment

Choose a reason for hiding this comment

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

LGTM

@weiquu weiquu removed the request for review from jasonqiu212 December 4, 2023 07:19
@weiquu weiquu added s.ToMerge The PR is approved by all reviewers including final reviewer; ready for merging and removed s.FinalReview The PR is ready for final review labels Dec 4, 2023
@weiquu weiquu merged commit bfcd355 into TEAMMATES:master Dec 4, 2023
9 checks passed
@wkurniawan07 wkurniawan07 added the c.Task Other non-user-facing works, e.g. refactoring, adding tests label Jan 21, 2024
@wkurniawan07 wkurniawan07 added this to the V8.30.0 milestone Jan 21, 2024
cedricongjh added a commit to cedricongjh/teammates that referenced this pull request Feb 20, 2024
… - average coverage 98% (TEAMMATES#12622)

* All coverages are 100%, except branch, 94%

* lint format passed

* Update src/web/app/components/extension-confirm-modal/extension-confirm-modal.component.spec.ts

Thank you for fixing this!

Co-authored-by: Cedric Ong <67156011+cedricongjh@users.noreply.github.com>

* Added tests for every advice (and more

* StudentRow and InstructorRow optimised

* changes according to lint

---------

Co-authored-by: Cedric Ong <67156011+cedricongjh@users.noreply.github.com>
Co-authored-by: Wei Qing <48304907+weiquu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c.Task Other non-user-facing works, e.g. refactoring, adding tests s.ToMerge The PR is approved by all reviewers including final reviewer; ready for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants