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

pandoraboot 单元测试报错问题 #9

Open
lichong2 opened this issue Mar 13, 2020 · 1 comment
Open

pandoraboot 单元测试报错问题 #9

lichong2 opened this issue Mar 13, 2020 · 1 comment

Comments

@lichong2
Copy link

当springboot集成pandoraboot做单元测试时,会出现报错,设置idea中的VM options参数-Dhsf.server.ip可以解决,但是单元测试不能每次执行都要设置该参数,请问是否有更好的解决方式。

@jbmt
Copy link

jbmt commented Apr 3, 2020

当springboot集成pandoraboot做单元测试时,会出现报错,设置idea中的VM options参数-Dhsf.server.ip可以解决,但是单元测试不能每次执行都要设置该参数,请问是否有更好的解决方式。

我也遇到了这个问题,用maven-sunfire-plugin解决的:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>-Dhsf.server.ip=127.0.0.1</argLine>
                </configuration>
            </plugin>

panxiaojun233 added a commit that referenced this issue Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants