alibaba / alibaba/testable-mock

按文档在test里设置jvmArgs报空指针

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.8k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

classpath.find { it.name.contains("testable-agent") }得到的是null,运行会直接报错
使用的版本是0.6.9
gradle 版本4.10
spring boot版本1.5.6

![image](https://github.com/alibaba/testable-mock/assets/11765204/be80b0cd-5dd2-45d7-98e4-4363c9d9eb2d)

![image](https://github.com/alibaba/testable-mock/assets/11765204/beb65c6e-5a0f-466c-910d-9e1ebc8faa67)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the documentation and test configuration that set jvmArgs, then reproduce the null classpath.find result using testable-mock 0.6.9, Gradle 4.10, and Spring Boot 1.5.6. Done means the testable-agent entry is found and the test no longer fails with a null-pointer exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.