Functional Test Matrix, a visualization

| | Comments (3)
[UPDATE: the final version of this code was added to ZenTest 3.5.0] As continuation from my previous post, I offer a visualization to help clarify things:
Before After
Click the images to see the code in more detail.

The most important thing to understand is that every matrix line from the "after" version like:

matrix :edit, :edit, :edit, :edit, :edit, :e_RO, :e_RO, :e_RO, :e_RO
is an entire page of the "before" version.

3 Comments

The use of single letters like u_w, g_r, etc is making my small brain hurt. I'm to assume u_w is split into [:u, :w] as the parameters for matrix_setup.

To clarify:

Method #matrix_setup_ACTION has ACTION matching to the :edit action (the first argument of each #matrix call).

And #matrix_test_ASSERT has ASSERT matching to each of the +test/-test test cases.

Is that right? I think I still prefer #action versus #matrix, and thus the setup method would be #action_setup_ACTION.

All my beautiful underscores are gone. sigh.

underscores fixed.

how to specify what markup thingy to apply to comments??? argh!

Leave a comment