본문 바로가기
개발/Java

[JUnit] #01. JUnit 5 개요 / Java 버전 / 예시 프로젝트

by Allonsy 2022. 1. 24.
반응형

# JUnit 5 는 이전 버전의 JUnit 과 달리 세 가지 모듈로 구성

JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage

 

# Java 버전

Java 8 이상 필요

이전 버전의 JDK에서 컴파일 된 코드는 테스트 가능

 

# 예시 프로젝트

Gradle & Java 

https://github.com/junit-team/junit5-samples/tree/r5.8.2/junit5-jupiter-starter-gradle

 

GitHub - junit-team/junit5-samples: Collection of sample applications using JUnit 5.

Collection of sample applications using JUnit 5. Contribute to junit-team/junit5-samples development by creating an account on GitHub.

github.com

Gradle & Kotlin

https://github.com/junit-team/junit5-samples/tree/r5.8.2/junit5-jupiter-starter-gradle-kotlin

 

GitHub - junit-team/junit5-samples: Collection of sample applications using JUnit 5.

Collection of sample applications using JUnit 5. Contribute to junit-team/junit5-samples development by creating an account on GitHub.

github.com

Gradle & Groovy

https://github.com/junit-team/junit5-samples/tree/r5.8.2/junit5-jupiter-starter-gradle-groovy

 

GitHub - junit-team/junit5-samples: Collection of sample applications using JUnit 5.

Collection of sample applications using JUnit 5. Contribute to junit-team/junit5-samples development by creating an account on GitHub.

github.com

Maven

https://github.com/junit-team/junit5-samples/tree/r5.8.2/junit5-jupiter-starter-maven

 

GitHub - junit-team/junit5-samples: Collection of sample applications using JUnit 5.

Collection of sample applications using JUnit 5. Contribute to junit-team/junit5-samples development by creating an account on GitHub.

github.com

Ant

https://github.com/junit-team/junit5-samples/tree/r5.8.2/junit5-jupiter-starter-ant

 

GitHub - junit-team/junit5-samples: Collection of sample applications using JUnit 5.

Collection of sample applications using JUnit 5. Contribute to junit-team/junit5-samples development by creating an account on GitHub.

github.com

 

반응형

댓글