Skip to content

Commit 1503f7f

Browse files
authored
Update Jenkins-CI-JUnit-Test.md
1 parent 890f2a3 commit 1503f7f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Jenkins-CI-JUnit-Test.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Jenkins CI Test
1+
# Jenkins CI JUnit Test
22

33
Jenkins 에 JUnit 플러그인을 설치하면 빌드 시 테스트를 돌리고 결과 리포트도 볼 수 있다.
44

@@ -34,3 +34,23 @@ Jenkins > Plugin Manager 에서 JUnit 플러그인 설치
3434
- 클릭하면 아래와 같이 리포트를 볼 수 있다.
3535

3636
![Imgur](https://i.imgur.com/TuL6ixo.png)
37+
38+
39+
## TroubleShooting
40+
41+
### Jenkins JUnit Test Result Error
42+
43+
빌드와 실제 테스트 실행도 모두 에러가 없었는데 콘솔 로그 마지막에 아래와 같이 표시되면서 Job이 실패로 종료되는 경우가 있다.
44+
45+
```
46+
Recording test results
47+
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did leafNodes run?
48+
For example, /xxx/build/test-results/test/TEST-xxx.yyy.zzz/ZzzTest.xml is 24 min old
49+
```
50+
51+
이럴 때는 아래와 같이 Jenkins Job 설정 > Build 에서 `clean`을 추가해주면 해결된다.
52+
53+
![Imgur](https://i.imgur.com/fZz7rr9.png)
54+
55+
56+

0 commit comments

Comments
 (0)