Skip to content

Conversation

@gregorioRQ
Copy link
Contributor

pull request

This is my first PR ever, so I'd really appreciate some feedback.
In the pig-latin exercise tests, I added the "@DisplayName" annotation to each test.


Reviewer Resources:

Track Policies

@github-actions
Copy link
Contributor

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@jagdish-15 jagdish-15 added the x:rep/small Small amount of reputation label Oct 23, 2025
}

@Test
@DisplayName("ay is added to words that begin with a vowel")
Copy link
Member

Choose a reason for hiding this comment

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

The text for the @DisplayName should come from the description in the exercise's canonical data. For example, this particular test case, it the description is on line 9, so the text should be word beginning with a. The other @DisplayNames should be updated to match theirs too.

Comment on lines 31 to 33
@Test
@Disabled
@DisplayName("word beginning with i")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
@Test
@Disabled
@DisplayName("word beginning with i")
@Disabled("Remove to run test")
@Test
@DisplayName("word beginning with i")

Avoid making unnecessary changes, such as altering the order between @test and @disabled.
Also, make changes across all instances according to the above suggestion.

Copy link
Member

@kahgoh kahgoh Oct 23, 2025

Choose a reason for hiding this comment

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

If it helps, the overall diff in the Files changed tab should show just the addition of the @DisplayName annotations. There shouldn't be any changes to @Disabled.

Comment on lines 1 to 3
{
"java.debug.settings.onBuildFailureProceed": true
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

It seems this file was unintentionally added by your IDE.
Please remove it!

}

@Test
@Disabled
Copy link
Member

Choose a reason for hiding this comment

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

Sorry I should've mentioned earlier, the only exception is the first test - the first test doesn't get @Disabled. The idea is that Exercism uses TDD where students would first try to get the first test working first. Once they have done that, they can remove the tag from the second test and get that working and so on.

Suggested change
@Disabled

@kahgoh kahgoh changed the title test pig-latin solved Add @DisplayName to pig latin Oct 23, 2025
gregorioRQ and others added 2 commits October 23, 2025 16:22
@jagdish-15 jagdish-15 merged commit 84ee767 into exercism:main Oct 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:rep/small Small amount of reputation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants