-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#1501] Create Unit Tests for FeedbackMcqQuestionDetailsTest.java #12638
[#1501] Create Unit Tests for FeedbackMcqQuestionDetailsTest.java #12638
Conversation
hi @mhoualla, thank you for your PR, do ensure that the checks on github are passing before we proceed to review it, thank you! |
It appears that the accessibility tests are failing. Could someone please rerun this check? It seems that I don't have the ability to do so. Do these accessibility tests occasionally fail, or have we inadvertently introduced an error into the HTML structure through our unit tests? |
hi @mhoualla as far as I know, the accessibility tests are not known to fail at times, however I also think that it's unlikely that the HTML structure would have changed due to the unit tests, I'll be monitoring and re-running the tests on github, but if you could spare some time, do try to run them locally to ensure that they pass on your branch as well |
Interesting. I commented out my changes, and the accessibility tests are still failing. I want to say that the test failure is completely unrelated to the changes I made, and I would appreciate it if a maintainer is able to take a deeper look into this / the axe test files. |
hi @mhoualla i've ran the accessibility tests on my end as well and they are failing, the team will take a deeper look into this issue, in the meantime, we'll review the current test code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM! just one small comment
src/test/java/teammates/common/datatransfer/questions/FeedbackMcqQuestionDetailsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/teammates/common/datatransfer/questions/FeedbackMcqQuestionDetailsTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
….java (TEAMMATES#12638) * added tests * linting and whitespace * fix failing unit test * cleaning * only include default constructor calls * case * localize accessibility test faults * axe testing?? * revert * remove comments * update with Arrays.asList * move assert participant type NONE to constructor * added unit test for generateOptionsFor
[#1501] Create Unit Tests for Feedback*QuestionDetails classes
Fixes #1501
This PR adds unit tests for the FeedbackMcqQuestionDetails class, focusing on methods related to question details and weights. The tests cover scenarios such as enabling/disabling question dropdowns, validating weights, and handling various combinations of weights and question details.
Current branch coverage of this class is ~80%. Locally, all tests pass successfully.