Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see failures summarized at the end #11

Open
rezammalik opened this issue Mar 11, 2021 · 6 comments
Open

Unable to see failures summarized at the end #11

rezammalik opened this issue Mar 11, 2021 · 6 comments
Labels
enhancement New feature or request pinned

Comments

@rezammalik
Copy link
Contributor

rezammalik commented Mar 11, 2021

I am not seeing failures summarized at the end of the test runs. I am using this with Gradle 4.4.3 though. Is this something that would work only with Gradle version specified in the README?

@sksamuel
Copy link
Member

Gradle 4.4.3 is quite old. This plugin is only targeting 6.x
Can you upgrade? If you're using the gradle wrapper it should be straightforward?

@rezammalik
Copy link
Contributor Author

oh, I misspoke. I meant I am using Kotest 4.4.3 and Gradle 6.8.2.

@sksamuel
Copy link
Member

So like a section that sums it up ?
The reporter should already be doing that. Do you have a screenshot ?

@rezammalik
Copy link
Contributor Author

rezammalik commented Mar 25, 2021

Here is a use case, 4 tests, 2 per Class are run.

The first one is good with both tests passing, the second one has 2 assertions in 1 test fail (reported together via softAsserts), the second test in the file just has one assert fail, shows correctly.

2.  testy.TestClass2
    + Account created via endpoint
        + for user2
            + on Internal Endpoint
                - returns the correct response and passes data validation OK (1411ms)
            + on Gateway Endpoint
                - returns the correct response and passes data validation OK (1577ms)

3.  testy.TestClass1
    + Account created via endpoint
        + for user 1
            + on Internal Endpoint
                - returns the correct response and passes data validation FAILED (1303ms)


The following 2 assertions failed:
1) expected:<"FAILED"> but was:<"SUCCESS">
        at testy.TestClass1$1$1$2$1$1.invokeSuspend(TestClass1.kt:82)
2) expected:<"FAILED"> but was:<"SUCCESS">
        at testy.TestClass1$1$1$2$1$1.invokeSuspend(TestClass1.kt:84)

<... stack trace here>

            + on Gateway Endpoint
                - returns the correct response and passes data validation FAILED (1579ms)

expected:<"FAILED"> but was:<"SUCCESS">
<... stack trace here>

>> There were test failures

 testy.TestClass1
 - Account created via endpoint for user 1 on Internal Endpoint returns the correct response and passes data validation
 - Account created via endpoint for user 1 on Gateway Endpoint returns the correct response and passes data validation

Specs:   2 passed, 1 failed, 3 total
Tests:   2 passed, 2 failed, 0 ignored, 4 total
Time:    27s

> Task :kotest FAILED

FAILURE: Build failed with an exception.

I was expecting the the summary at the end to list the assertions that failed, like in the readme.md screengrabs. Just wondering if my expectations are off or there is something I am not doing correctly, for them to now show up.

@sksamuel
Copy link
Member

sksamuel commented Mar 25, 2021 via email

@sksamuel sksamuel added enhancement New feature or request pinned labels Mar 28, 2021
@rezammalik
Copy link
Contributor Author

@sksamuel Hey Sam. Is this something that is available now or will be soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

2 participants