문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
java:junit:contiperf [2015/11/26 19:51] kwon37xi [@PerfTest 옵션들] |
java:junit:contiperf [2016/04/22 08:26] (현재) kwon37xi [Bug] |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== ContiPerf ====== | ====== ContiPerf ====== | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| 줄 8: | 줄 9: | ||
| @Rule | @Rule | ||
| - | public ContiPerfRule | + | public ContiPerfRule |
| @Test | @Test | ||
| 줄 18: | 줄 19: | ||
| } | } | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | ===== 테스트 코드 작동구조 ===== | ||
| + | > First the @Before method is called. Then the test method is invoked 1,000 times subsequently and finally the @After method(s). ContiPerf 2 supports this behaviour for all JUnit 4 versions since version 4.7. | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | 예를들어 테스트 메소드가 '' | ||
| + | < | ||
| + | constructor() | ||
| + | before() | ||
| + | test1() * 1000 회 수행 | ||
| + | after() | ||
| + | |||
| + | constructor() | ||
| + | before() | ||
| + | test2() * 1000 회 수행 | ||
| + | after() | ||
| </ | </ | ||
| 줄 26: | 줄 47: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| + | timer = RandomTimer.class, | ||
| + | // ConstantTimer, | ||
| + | </ | ||
| + | |||
| + | ===== @Required : 테스트 성공 조건 기술 ===== | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| ===== 임시 작동 중단 ===== | ===== 임시 작동 중단 ===== | ||
| 줄 33: | 줄 69: | ||
| </ | </ | ||
| - | + | ===== Bug ===== | |
| - | + | <code> | |
| - | ===== 테스트 코드 작동구조 | + | java.lang.NoSuchFieldException: |
| - | > First the @Before method is called. Then the test method is invoked 1,000 times subsequently and finally the @After method(s). ContiPerf 2 supports this behaviour for all JUnit 4 versions since version | + | </ |
| - | + | JUnit 최신 버전과 안 맞아서 생기는 오류. JUnit 버전을 다운그레이드(4.11 이하) 할 것. | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |