I wrote up some reflections I’ve had recently on when I ideally want to discover bugs

  • Lixen@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    9 hours ago

    While writing code, it will be in a nonsensical state for most of the time until you complete a chunk. What additional value does running the unit tests continuously bring over just running it when you complete a chunk of code?

    • MeadSteve@reddthat.comOP
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      That’s a good question. For me it’s not really about it running all the time but it’s about not having to spend any mental effort to switching "mode"and running the tests. With this and the IDE integration it really makes testing a first class activity. I think wallaby that I linked has some videos of the experience which might make more sense than my words.

      Most continuous test runners don’t actually run on every key stroke but wait until it’s syntactically valid. It’s also common for them to do some smart diff and only re-run a subset of the tests.