Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/G1Joshi/Agent-Skills --skill junit명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | junit |
| description | JUnit Java testing framework. Use for Java testing. |
JUnit is the programmer-friendly testing framework for Java and the JVM. JUnit 5 is the current major version, composed of the JUnit Platform, JUnit Jupiter, and JUnit Vintage.
spring-boot-starter-test which includes JUnit 5.import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class CalculatorTest {
@Test
void addition() {
assertEquals(2, 1 + 1, "Optional failure message");
}
}
@BeforeEach / @AfterEach: Run before/after every test method.@BeforeAll / @AfterAll: Run once per class (must be static).Running the same test with different inputs.
@ParameterizedTest
@ValueSource(strings = { "racecar", "radar", "able was I ere I saw elba" })
void palindromes(String candidate) {
assertTrue(StringUtils.isPalindrome(candidate));
}
assertThrows, assertTimeout, assertAll (Grouped assertions).
Do:
@DisplayName: Give tests readable sentences as names ("Should return 404 when user not found").assertThat(actual).isEqualTo(expected)) is fluent and better.Don't:
System.out.println: Use a logger or assertions.@Test (org.junit.Test) is old. Use @Test (org.junit.jupiter.api.Test).