kyuubi/docs/tools/testing.md
2020-11-05 19:05:26 +08:00

35 lines
846 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div align=center>
![](../imgs/kyuubi_logo_simple.png)
</div>
# Running Tests
**Kyuubi** can be tested based on [Apache Maven](http://maven.apache.org) and the ScalaTest Maven Plugin,
please refer to the [ScalaTest documentation](http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin),
## Running Tests Fully
The following is an example of a command to run all the tests:
```bash
./build/mvn clean test
```
## Running Tests for a Module
```bash
./build/mvn clean test -pl :kyuubi-common
```
## Running Tests for a Single Test
When developing locally, its convenient to run one single test, or a couple of tests, rather than all.
With Maven, you can use the -DwildcardSuites flag to run individual Scala tests:
```bash
./build/mvn test -Dtest=none -DwildcardSuites=org.apache.kyuubi.service.FrontendServiceSuite
```