Test code: two tests in the "counter" group, one ungrouped

The complete source of testing_grouped_tests.ek9, compiled by the EK9 compiler. Shown on testing.html.

#!ek9
defines module site.testing.grouped.tests

  references
    site.testing.grouped::Counter

  defines program

    @Test: "counter"
    CounterIncrementTest()
      counter <- Counter()
      counter.increment()
      assert counter.count() == 1

    @Test: "counter"
    CounterMultipleIncrementTest()
      counter <- Counter()
      counter.increment()
      counter.increment()
      counter.increment()
      assert counter.count() == 3

    @Test
    IndependentTest()
      counter <- Counter()
      assert counter.count() == 0

Download testing_grouped_tests.ek9