question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running single tests with Gradle command line does not work

See original GitHub issue

Running just a single test does not work when running from the command line. To reproduce, use kotlintest’s own current master (65cd9d03b52e9936904a2d55d5087a0bcc4c86fd) and run:

./gradlew test --tests io.kotlintest.extensions.system.SystemExitTest

It will run all tests instead of just io.kotlintest.extensions.system.SystemExitTest.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Jun 9, 2018

I’ve opened an issue at gradle. https://github.com/gradle/gradle/issues/5678

0reactions
sschuberthcommented, Jun 24, 2018

Confirmed to be working, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run only one unit test class using Gradle - Stack Overflow
To run a single test class Airborn's answer is good. With using some command line options, which found here, you can simply do...
Read more >
Gradle - How to run a single unit test class - Mkyong.com
1. Run a single test class ... Review a simple unit test. ... To run only the above unit test, try gradle test...
Read more >
Testing in Java & JVM projects - Gradle User Manual
The command-line option is especially useful to execute a single test method. When you use --tests , be aware that the inclusions declared...
Read more >
Running your tests on the command line with Gradle - Medium
Use the command ./gradlew test to run all tests. $ ./gradlew test. Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app: ...
Read more >
Gradle - How to run single Test - javabydeveloper Java Tutorials
Following is the command in gradle to run single specific test class. Option -i is optional, which to used to see print messages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found