You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm both that the **suite count** matches what you asked for (typically `1`) and that the
343
+
**test count** is in the expected range for that suite. A run that reports `Total number of
344
+
tests run: 0` or one that reports thousands of tests when you asked for a single suite is a
345
+
filter problem, not a successful run.
346
+
347
+
### Skip Scalastyle When Iterating
348
+
349
+
The `scalastyle:check` goal runs in every Maven test invocation and re-scans every Scala source
350
+
file even when nothing relevant changed. When iterating on a single test, skip it:
351
+
352
+
```sh
353
+
./mvnw test -Dtest=none -Dsuites="org.apache.comet.CometArrayExpressionSuite" -Dscalastyle.skip=true
354
+
```
355
+
356
+
CI still enforces scalastyle, so this is purely a local iteration shortcut.
357
+
260
358
## Development Environment
261
359
262
360
Comet is a multi-language project with native code written in Rust and JVM code written in Java and Scala.
@@ -370,15 +468,18 @@ However if the tests is related to the native side. Please make sure to run `mak
370
468
371
469
### Running Tests from command line
372
470
373
-
It is possible to specify which ScalaTest suites you want to run from the CLI using the `suites`
374
-
argument, for example if you only want to execute the test cases that contains _valid_
375
-
in their name in`org.apache.comet.CometCastSuite` you can use
471
+
Specify which ScalaTest suites to run with the `suites` argument and disable Surefire's JUnit
472
+
discovery with `-Dtest=none`. For example, to run only the test cases containing _valid_ in
473
+
their name from`org.apache.comet.CometCastSuite`:
376
474
377
475
```sh
378
476
./mvnw test -Dtest=none -Dsuites="org.apache.comet.CometCastSuite valid"
379
477
```
380
478
381
-
Other options for selecting specific suites are described in the [ScalaTest Maven Plugin documentation](https://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin)
479
+
See [Running a Specific ScalaTest Suite](#running-a-specific-scalatest-suite) above for the full
480
+
list of common patterns and pitfalls (including why `-DwildcardSuites=""` silently runs every
481
+
suite). Other options for selecting specific suites are described in the
0 commit comments