You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a follow-up to #5, especially if we go the @typed route in #21, it's becoming important to layer the tests so that the lower levels (that other parts of unpythonic rely on) are tested first, to make it easier to find the bug when something fundamental breaks.
The runtests.py script executes the automated test modules in any given directory in lexicographical (a.k.a. "asciibetical"... nowadays maybe "unicodical"?) order, so this can be achieved by simply renaming the automated test files.
The tricky part is to figure out the proper ordering. As for the first layer, at least dynassign and typecheck, maybe also collections (box is used in other modules), should be part of that.
Layer 0: since our no-framework (cf. "NoSQL") unpythonic.test.fixtures is programmable, we can test its lower-level functionality first (using plain asserts), before we run the rest of the tests.
Activity
Technologicat commentedon Aug 29, 2020
Hmm, maybe we can use pyan3's
modvis.pyto find modules which have no outgoing edges, i.e. those that don't depend on anything else.If there's at least a partial order in the dependency graph, that could point the way forward in a semi-automated way...
[-]Ordering of tests[/-][+]Layer tests[/+]Technologicat commentedon Sep 4, 2020
Layer 0: since our no-framework (cf. "NoSQL")
unpythonic.test.fixturesis programmable, we can test its lower-level functionality first (using plain asserts), before we run the rest of the tests.