Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于集成测试的问题 #593

Closed
yuanChina opened this issue Dec 9, 2022 · 7 comments
Closed

关于集成测试的问题 #593

yuanChina opened this issue Dec 9, 2022 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@yuanChina
Copy link

yuanChina commented Dec 9, 2022

采用springboot+spock编写集成测试,再启动spring容器的时候报错
通过ide执行测试用例,在执行到BizMode start时候就结束了,请问哪里有问题呢

image

@glmapper
Copy link
Contributor

glmapper commented Dec 9, 2022

@yuanChina 尝试 debug 走一下,看哪里退出了;”启动spring容器的时候报错“ 贴一下异常堆栈

@yuanChina
Copy link
Author

@glmapper 上面的截图就是debug的,并没有具体报错,不过在biz invoke的时候就结束了,猜测是因为这个mainClass没有找到或者没有main方法,路径就是com.intellij.rt.junit.JUnitStarter

@yuanChina
Copy link
Author

描述不准确,实际上并没有报错

@yuanChina
Copy link
Author

image
这个是spock的启动类,新加了main方法

@yuanChina
Copy link
Author

@glmapper

@lylingzhen
Copy link
Contributor

@yuanChina 一行行 debug 一下有什么发现吗?

@lylingzhen lylingzhen added the question Further information is requested label Mar 17, 2023
@lylingzhen
Copy link
Contributor

先 close issue,有问题再 reopen。
可以尝试进到最里面代码 debug。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants