docs about Conditional tests with Gradle are wrong
See original GitHub issuehi!
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:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And we already support them as env vars so I’ve added that to the docs as well.
Good to know.
On Sun, 13 Mar 2022 at 14:05, Bernd Dorn @.***> wrote: