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.

docs about Conditional tests with Gradle are wrong

See original GitHub issue

hi!

at https://kotest.io/docs/framework/conditional/conditional-tests-with-gradle.html#kotest-specific-test-filtering the statements do not work, since an equal sign is missing. e.g:

gradle test -Dkotest.filter.specs 'com.somepackage.*'

should become:

gradle test -Dkotest.filter.specs='com.somepackage.*'

also the documented approach does not work because gradle (at least in v7.x) does not pass on system props to the test JVM (see the discussion here). so at least some (not mentioned) gradle config tweaking is necessary to pass the system properties.

seeing this, i think it would actually be nice if kotest would use environment variables instead of system properties, since those are passed automatically.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Mar 13, 2022

And we already support them as env vars so I’ve added that to the docs as well.

0reactions
sksamuelcommented, Mar 13, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing in Java & JVM projects - Gradle User Manual
ignoreFailures — default: false ... failFast — (since Gradle 4.6) default: false ... DOCS_TYPE_ATTRIBUTE, objects.named(DocsType, 'test-report-data')) ...
Read more >
Solving common problems - Gradle User Manual
If you add conditional logic to distinguish CI builds from local development builds, you have to ensure that this does not break the...
Read more >
Customizing resolution of a dependency directly
By default Gradle resolves all transitive dependencies specified by the dependency metadata. Sometimes this behavior may not be desirable e.g. if the metadata ......
Read more >
Authoring Tasks - Gradle User Manual
As part of incremental build, Gradle tests whether any of the task inputs or outputs has changed since the last build. If they...
Read more >
Improve the Performance of Gradle Builds
Documentation writers don't need to build front-end or back-end code even if the documentation lives in the ... junitXml.required to false in the...
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