Skip to content

Commit

Permalink
Update unit test doc (#5856)
Browse files Browse the repository at this point in the history
Signed-off-by: Chong Gao <res_life@163.com>
  • Loading branch information
res-life authored Jun 20, 2022
1 parent 9defb4c commit ba8c57b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ and the code is in the `com.nvidia.spark.rapids.tests.mortgage` package.
Unit tests exist in the [tests]() directory. This is unconventional and is done so we can run the
tests on the final shaded version of the plugin. It also helps with how we collect code coverage.

Use Maven to run the unit tests via `mvn test`.
The `tests` module depends on the `aggregator` module which shades dependencies. When running the
tests via `mvn test`, make sure to do an install via `mvn install` for the aggregator jar to the
local maven repository.
The steps to run the unit tests:
```bash
cd <root-path-of-spark-rapids>
mvn clean install
cd tests
mvn test
```

To run targeted Scala tests append `-DwildcardSuites=<comma separated list of wildcard suite
names to execute>` to the above command.
Expand Down

0 comments on commit ba8c57b

Please sign in to comment.