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.

KotlinTest run configuration not detected

See original GitHub issue

Sure, the run configuration (this is used regardless of which green arrow I click):

idea64_2019-02-20_12-39-08

And here’s the test output pane:

idea64_2019-02-20_12-40-40

Here’s the relevant logging output:

40 [main] DEBUG KotlinTestEngine - configurationParameters=LauncherConfigurationParameters []
40 [main] DEBUG KotlinTestEngine - uniqueId=[engine:kotlintest]
60 [main] DEBUG KotlinTestEngine - LauncherDiscoveryRequest [
classpathRootSelectors=[]
classpathResourceSelectors=[]
classSelectors=[com.mycompany.testmaster.domain.nodes.CompositeNodeTests]
methodSelectors=[]
directorySelectors=[]
fileSelectors=[]
moduleSelectors=[]
packageSelectors=[]
uniqueIdSelectors=[]
uriSelectors=[]
engineFilters=[]
postDiscoveryFilters=[]
classnameFilters=[]
packageNameFilters=[]
]
120 [main] DEBUG TestDiscovery - Loaded 1 classes from classnames...
395 [main] DEBUG TestDiscovery - ...which has filtered to 1 non abstract classes
395 [main] DEBUG TestDiscovery - 1 classes after applying discovery extensions405 [main] DEBUG KotlinTestEngine - configurationParameters=LauncherConfigurationParameters []
405 [main] DEBUG KotlinTestEngine - uniqueId=[engine:kotlintest]
405 [main] DEBUG KotlinTestEngine - LauncherDiscoveryRequest [
classpathRootSelectors=[]
classpathResourceSelectors=[]
classSelectors=[com.mycompany.testmaster.domain.nodes.CompositeNodeTests]
methodSelectors=[]
directorySelectors=[]
fileSelectors=[]
moduleSelectors=[]
packageSelectors=[]
uniqueIdSelectors=[]
uriSelectors=[]
engineFilters=[]
postDiscoveryFilters=[]
classnameFilters=[]
packageNameFilters=[]
]
415 [main] DEBUG KotlinTestEngine - JUnit execution request [configurationParameters=LauncherConfigurationParameters []; rootTestDescriptor=KotlinTestEngineDescriptor: [engine:kotlintest]]
415 [main] DEBUG JUnitTestRunnerListener - Engine started; classes=[[class com.mycompany.testmaster.domain.nodes.CompositeNodeTests]]
415 [main] DEBUG TestEngine - Submitting 1 specs
415 [main] DEBUG TestEngine - Waiting for spec execution service to terminate
437 [kotlintest-engine-0] DEBUG JUnitTestRunnerListener - prepareSpec [Description(parents=[], name=CompositeNodeTests)]447 [kotlintest-test-executor-0] DEBUG JUnitTestRunnerListener - Creating test case descriptor Description(parents=[CompositeNodeTests], name=Describe: Composite node)/Container
457 [kotlintest-test-executor-0] DEBUG JUnitTestRunnerListener - Notifying junit of start event [engine:kotlintest]/[spec:CompositeNodeTests]/[test:Describe%3A Composite node]457 [kotlintest-test-executor-0] DEBUG JUnitTestRunnerListener - Creating test case descriptor Description(parents=[CompositeNodeTests, Describe: Composite node], name=Scenario: immediately executes once and terminates if it has no inputs and no outputs)/Test
457 [kotlintest-test-executor-0] DEBUG JUnitTestRunnerListener - Notifying junit of start event [engine:kotlintest]/[spec:CompositeNodeTests]/[test:Describe%3A Composite node]/[test:Scenario%3A immediately executes once and terminates if it has no inputs and no outputs]
634 [kotlintest-engine-0] DEBUG JUnitTestRunnerListener - Notifying junit of test case completion [engine:kotlintest]/[spec:CompositeNodeTests]/[test:Describe%3A Composite node]=TestResult(status=Failure, error=java.lang.AssertionError: Expected exception java.lang.IllegalStateException but no exception was thrown, reason=null, metaData={})

_Originally posted by @TAGC in https://github.com/kotlintest/kotlintest/issues/329#issuecomment-465558665_

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
sksamuelcommented, Mar 1, 2019

3.3.0.10 is now released compiled against KotlinTest 3.3.0 Please make sure you have upgraded both and you should be good to go!

2reactions
sksamuelcommented, Feb 28, 2019

@bbaldino this should be present in 3.3.0.9 pending update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KotlinTest run configuration not detected · Issue #4 - GitHub
If you do not have the KotlinTest logo in the run configuration then it's detecting it as a Junit test. You can check...
Read more >
Gradle does not find my tests with Kotlin and JUnit 5
Unfortunately, when I run them from Intellij IDEA, the tests are not found by Gradle. I am getting the message "No tests found...
Read more >
IntelliJ does not recognize JUnit 5 tests in Kotlin multiplatform ...
KTIJ-15369 Running a test in a multi-module MPP project via IntelliJ Idea gutter action produces incorrect Gradle Run configuration.
Read more >
Not able to run unit tests on kotlin Multiplatform project
I created a simple junit (4) test class and configured it as follows. pack… ... Process finished with exit code 1 Class not...
Read more >
Can't run Kotlin tests with Junit run configuration (used to work)
Hi, Have a weird issue where a Junit Run Configuration that was running my Junit tests for months just stopped working and now...
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