[Masterview-devel] Unit tests and directive loading

Deb Lewis
Sat, 07 Oct 2006 20:22:29 -0000

status: spent a good part of yesterday doing complete cleanup pass over all
the unit tests to hook them into the directive-test-helper framework.  Big
improvement, you can now look at a test case and have an idea of what it
thinks it ought to be doing.

[which i for sure couldn''t do before, when the essence of the test was
buried under mounds of directive sets and dcs''s and logistical
internals!]

Spent all morning today rewriting some core portions of the metadata
infrastructure trying to hunt down source of subtle bug that intermittently
showed up as inconsistent metadata values.  Finally found a subtle timing
problem related to to the notification from ruby''s class machinery
about our
directive base class being inherited, which we use to pick up additions to
the set of known directives.

So after all that... all the individual unit tests run, my basic test site
with MV templates plus custom directive usage runs, and.... I still get a
failure when running the entire suite.  Some test is somehow affecting the
state of the directive registry s.t. the template parsing test case
doesn''t
find the builtin directives.

Out of ideas for now on how else to debug the tests, taking a break.  I
think the problem is the tests, not the actual code, but there it is.

~ Deb