I have fixed the problem. Please have a review.

Fix https://issues.apache.org/jira/browse/IOTDB-2
Now we can use :
* `mvn test` to run all UTs.
* `mvn package -DskipTests` to skip all UTs.
* `mvn package -Dtsfile.test.skip` to skip all UTs in Tsfile Module.
** `-Diotdb.test.skip`, `-Djdbc.test.skip`, `-Drpc.test.skip`,
`-Dgrafana.test.skip` and  `-Dcli.test.skip` are similar.
* `mvn verify` to run all ITs.
* `mvn verify -Dtsfile.it.skip` to skip all ITs.
** similarly, you can use`-Diotdb.it.skip`, `-Djdbc.it.skip`,
`-Drpc.it.skip`, `-Dgrafana.it.skip` and  `-Dcli.it.skip`
* `mvn install` to run all Tests (both UTs and ITs).

What are UTs: java files which are in `src/test/java/` and have suffix with
`Test.java`
What are ITs: java files which are in `src/test/java/` and have suffix with
`IT.java`

Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


Xiangdong Huang <[email protected]> 于2019年1月19日周六 下午12:04写道:

> 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
>>
>

Reply via email to