Execution failed for task ':test'.
> There were failing tests. See the report at: file:///C:/~~~/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights.
BUILD FAILED in 33s
12 actionable tasks: 12 executed
하지만 실패한다는 테스트는 실제로 실행해보면 성공하는 테스트였다.
application.yml
의 grpc: server: port:
설정 위치가 문제였다.gPRC 포트 설정을 로컬 프로파일로 이동함으로써 충돌을 방지하고, 문제를 해결했다.
기존 application.yml
# 1. 기본값 프로파일
server:
port: ${SERVER_PORT}
grpc:
server:
port: ${GRPC_PORT} # 기존
# ~
# 2. 로컬용 프로파일
---
spring:
config:
activate:
on-profile: local
# ~
# 3. 테스트 실행 전용 프로파일
---
spring:
config:
activate:
on-profile: test
# 1. 기본값 프로파일
server:
port: ${SERVER_PORT}
# ~
# 2. 로컬용 프로파일
---
spring:
config:
activate:
on-profile: local
grpc:
server:
port: ${GRPC_PORT} # 이동
# ~
# 3. 테스트 실행 전용 프로파일
---
spring:
config:
activate:
on-profile: test