kotest / kotest-gradle-plugin

A gradle plugin for Kotest
https://kotest.io
Apache License 2.0
29 stars 5 forks source link

plugin output looks strange with enabled parallelism #8

Closed christophsturm closed 3 years ago

christophsturm commented 3 years ago

reproducable with this tag from this repo: https://github.com/christophsturm/r2dbcfun/tree/kotest-plugin-issue

> Task :kotest
OpenJDK 64-Bit Server VM warning: Option AllowRedefinitionToAddDeleteMethods was deprecated in version 13.0 and will likely be removed in a future release.
~~~ Kotest Configuration ~~~
-> Parallelization factor: 12
-> Default test timeout: 600000ms
-> Default test order: Sequential
-> Default isolation mode: InstancePerTest
-> Global soft assertations: False
-> Write spec failure file: False
-> Fail on ignored tests: False
-> Spec execution order: SpecExecutionOrder
-> Extensions
  - io.kotest.engine.extensions.SystemPropertyTagExtension
  - io.kotest.core.extensions.RuntimeTagExtension
  - io.kotest.engine.extensions.RuntimeTagExpressionExtension
  - io.kotest.engine.extensions.SpecifiedTagsTagExtension
-> Listeners
  - class io.kotest.engine.config.LoadConfigFromClasspathKt$toDetectedConfig$beforeAfterAllListener$1

>> Kotest
- Preparing to sacrifice your code to the demi-god of test
- Test plan has 8 specs

OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
1.  1.  1.  1.  r2dbcfun.test.functional.QueryFactoryFunctionalTest
1.  1.  1.  1.  r2dbcfun.R2dbcTest
r2dbcfun.util.StringUtilTest
r2dbcfun.ConnectedRepositoryTest
r2dbcfun.internal.IDHandlerTest
r2dbcfun.query.QueryFactoryTest
r2dbcfun.RepositoryTest
r2dbcfun.test.functional.RepositoryFunctionalTest
                        + the repository class
    + RepositoryFT on h2
    + QueryFactoryFT on h2
+ r2dbctest on h2
+ string methods
+ ConnectedRepository
+ assigning an id to a newly created instance
+ typesafe query factory
        - can convert camel case to snake case OK
        - can convert question mark syntax to indexed syntax OK

        - assigns a long id OK
        - returns a query factory OK
        + fail fast error handling
        - assigns a PK class instance OK

            - fails fast if PK has more than one field OK
            - fails if class contains unsupported fields OK
            - fails if class has no id field OK

OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
        + a repo with a user class
        + query language
        - can create query with one parameter OK
        - can create query with two parameter OK
        - can create query with three parameter OK

            + Creating Rows
        - exposes Repository and Connection OK
        + forwarding calls
            - has a typesafe query api OK
        - can insert values and select result OK
    + r2dbctest on psql
            - can query null values OK
            - create call OK
                - can insert data class and return primary key OK
            - update call OKG [9s]
            - findById call OK

            - can delete by query OK
    + QueryFactoryFT on psql
                - supports nullable values OK
            + loading data objects
                - can load data object by id OK
                - throws NotFoundException when id does not exist OK
            + updating objects
                - can update objects OK
            + enum fields
                - enum fields are serialized as upper case strings OK
        + interop with kotlinx.serializable
            - can insert data class and return primary key OK
    + RepositoryFT on psql
        + a repo with a user class
        + query language
        - can insert values and select result OK

            + Creating Rows
            - has a typesafe query api OK
            - can query null values OK
                - can insert data class and return primary key OK
                - supports nullable values OK
            - can delete by query OK

            + loading data objects
                - can load data object by id OK
                - throws NotFoundException when id does not exist OK
            + updating objects
                - can update objects OK
            + enum fields
                - enum fields are serialized as upper case strings OK
        + interop with kotlinx.serializable
            - can insert data class and return primary key OK

>> All tests passed

Specs:   1 passed, 0 failed, 1 total
Tests:   37 passed, 0 failed, 0 ignored, 37 total
Time:    15s

BUILD SUCCESSFUL in 20s

this part looks strange:

1.  1.  1.  1.  r2dbcfun.test.functional.QueryFactoryFunctionalTest
1.  1.  1.  1.  r2dbcfun.R2dbcTest

also (maybe not kotest plugin related) it seems like there's an additional VM started during the test run. (this is shown 2 times:)

OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.