Hi,
Now we have to use `-Dmaven.test.skip=true` to skip all the Tests (but the
command will also skip compiling all the Test java files).
I also think that let `-DskipTests` works is important, because it just
skips Tests while still compiling the Test files first. In this way, we can
find whether there is compile error in Test files.
Is the advice removing <skipTests>${tsfile.test.skip}</skipTests> ? (But I
think the parameter is also useful, because we can use it to skip the tests
of some modules).
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Christofer Dutz <[email protected]> 于2019年1月18日周五 下午10:34写道:
> Hi all,
>
> After encountering the time-zone problem I wanted to run the build without
> tests. However this wasn’t directly possible.
> Even if I clicked on “skip tests” in IntelliJ tests were executed, so I
> manually added “-DskipTests”, but still the tests were executed.
> Looking at projects like tsfile I noticed the surefire configuration
> having this:
>
> <skipTests>${tsfile.test.skip}</skipTests>
>
> I think this is not a good practice as it confuses people and causes
> problem with tool-integration like IntelliJ
>
> Chris
>