https://kotlinlang.org logo
Join SlackCommunities
Powered by
# failgood
  • c

    christophsturm

    04/12/2022, 4:54 PM
    also because of the naming pattern i have to load only a subset of the classfiles which also speeds up test discovery. (but probably its not a big deal)
  • c

    christophsturm

    04/12/2022, 4:56 PM
    i guess i could make the `@Test`annotatation mandatory, all failgood tests that i know of use it anyway
  • r

    robfletcher

    04/12/2022, 5:03 PM
    Personally I prefer the clarity of intent that using an annotation affords. Just my opinion tho.
  • c

    christophsturm

    04/12/2022, 5:05 PM
    btw i pushed a big docs update yesterday, and would love some feedback on it: https://github.com/failgood/failgood#readme
  • c

    christophsturm

    04/12/2022, 5:05 PM
    trying to write docs made me realize that the test discovery part is not yet great.
  • c

    christophsturm

    04/12/2022, 5:10 PM
    btw i also use kotlin-power-assert for tests now with a combination of `assertNotNull()`for navigation and
    assert
    for the actual assertion like this:
    Copy code
    val failedContext = assertNotNull(suiteResult.failedRootContexts.singleOrNull())
    assert(failedContext.context.name == "root")
    the only thing thats missing is soft asserts
  • c

    christophsturm

    04/13/2022, 7:09 AM
    what’s the best way to mark pending tests? I think it would be great to have pending tests that fail on ci, because its something that you need to do before merging your pr. but there also need to be ignored tests that you don’t care about. should i just introduce an ignored keyword in addition to pending?
  • c

    christophsturm

    04/13/2022, 6:41 PM
    ok in main tests are now found via
    @Test
    annotation, and file name or class name no longer matters.
  • k

    kharf

    04/14/2022, 6:01 AM
    oh hello there
  • c

    christophsturm

    04/25/2022, 5:57 PM
    I’m now working on an idea plugin.
  • c

    christophsturm

    08/18/2022, 12:28 PM
    the main branch is now feature complete for the 0.8 release. the main new feature is an option to turn off test isolation for a sub contexts, which is great if you want to stick to 1 assertion per test. currently undocumented but feel free to try it out. https://github.com/failgood/failgood/blob/main/failgood/jvm/test/failgood/functional/SubContextIsolationTest.kt#L16
  • c

    christophsturm

    08/31/2022, 9:43 AM
    sequential test steps api draft: https://github.com/failgood/failgood/pull/124 cc @Mervyn McCreight
  • r

    Richard Schielek

    09/23/2022, 4:25 PM
    🖐️
    👋 2
  • c

    christophsturm

    09/27/2022, 5:14 PM
    what do people here think about the new Ignore API? https://github.com/failgood/failgood/pull/139
    m
    • 2
    • 5
  • c

    christophsturm

    09/29/2022, 8:32 PM
    what is now in the main branch will be released as 0.8.2 sometime this week.
  • c

    christophsturm

    10/03/2022, 1:18 PM
    really interesting article about test dependencies: https://thoughtbot.com/blog/the-self-contained-test I always try to find a middle ground where I just put the “boring” dependencies into the context, and everything that is really needed is then done in the test. for example If I need a user object I will have a generic user instance in the test context, and then in each test i set the fields that really matter for that test via the copy function. Maybe something to blog about…
  • r

    robfletcher

    10/03/2022, 1:49 PM
    I often use the copy function in exactly that way — to customize a “generic” data class instance that’s a class level variable for particular conditions in the test method
  • c

    christophsturm

    10/06/2022, 9:50 AM
    I started a discussion how to do collection asserts in a power assert style api, please chime in if you have ideas: https://github.com/bnorm/kotlin-power-assert/discussions/74
  • c

    christophsturm

    12/28/2022, 12:01 PM
    that looks nice: https://github.com/danger/kotlin
  • c

    christophsturm

    03/11/2023, 10:26 AM
    does anyone here have an opinion on this? https://github.com/failgood/failgood/issues/201 just comment on the ticket with ideas.
  • c

    christophsturm

    07/26/2023, 1:12 PM
    the git main branch now contains an optional new junit engine. see the changelog on how to try it out
  • c

    christophsturm

    10/23/2023, 8:53 PM
    coming soon: the failgood idea plugin to run single tests or contexts from idea.
  • c

    christophsturm

    11/06/2023, 2:53 PM
    https://github.com/christophsturm/failgood-idea you can build it yourself if you want to try it out. in some days it will probably appear in the idea plugin marketplace
  • c

    christophsturm

    11/10/2023, 10:38 AM
    https://plugins.jetbrains.com/plugin/23071-failgood/
  • m

    Mervyn McCreight

    11/10/2023, 10:06 PM
    with the addon there is no need to additionally alter any settings in idea anymore, right?
  • c

    christophsturm

    11/10/2023, 10:48 PM
    I’m not sure. the only thing the plugin currently does is create a junit run config that runs a test or context via uniqueid. it will not work when you use gradle to run the tests. if you find out that any config combination does not work just file a github issue and I will take a look. excited to get feedback from other users!
  • c

    christophsturm

    12/23/2023, 4:02 PM
    https://github.com/failgood/failgood/releases/tag/0.9.0 happy holidays everybody!
  • c

    christophsturm

    06/20/2024, 9:54 PM
    0.9.2 is around the corner and will come with some deprecations: https://github.com/failgood/failgood/pull/372
  • c

    christophsturm

    06/20/2024, 9:55 PM
    also failgood 0.9.2 will depend on slf4j and klogging. if thats really bad please speak up.
  • c

    christophsturm

    06/20/2024, 9:57 PM
    also I started prototyping a new DSL, https://github.com/failgood/failgood/blob/main/failgood/test/failgood/experiments/andanotherdsl/AnotherDSLExperiment.kt please take a look and tell me what you think.