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

windows下编译modules时test不通过 #567

Open
JinXin1995 opened this issue May 26, 2017 · 3 comments
Open

windows下编译modules时test不通过 #567

JinXin1995 opened this issue May 26, 2017 · 3 comments

Comments

@JinXin1995
Copy link

  1. 在windows下,git默认会将文件的换行符会被自动转换为crlf格式,导致utils模块下test时不能正确读取application.properties的值,以及计算test.txt的sha1值与预期不符
  2. FileTreeWalkerTest.java与WildcardMatcherTest.java两个文件中部分路径使用的分隔符为'/'导致windows下无法通过测试
  3. SystemPropertiesUtilTest.java第95行获取windows中默认情况下不存在的环境变量HOME导致无法通过测试。
@ya0xu
Copy link

ya0xu commented Sep 5, 2017

是不是只能在非window下编了?有什么好的解决方案没有啊?

@LimingSun
Copy link

在quick-start.bat 里,在安装的maven命令后面添加跳过test的指令:
最终如下:%MVN% clean install -DskipTests=true
这样可以解决test不通过的问题。
关键是跳过之后,启动不成功,查看log日志,发现报错:1.*.utils.mapper不存在;2.找不到符号。

@gitGksgk
Copy link

gitGksgk commented May 31, 2018

我出现了2,3的问题,解决方法:assert错误就把阻碍人的assertThat全去掉,comparison错误(主要是路径错误)就把/全替换成\。终于编译出springside-utils-5.0.0-SNAPSHOT-tests.jar了...

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

4 participants