Skip to content

Layer tests #69

Open
Open

Description

@Technologicat

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.

Activity

  1. added
    enhancement
    on Aug 29, 2020
  2. added this to the 0.14.3 milestone on Aug 29, 2020
  3. Technologicat commented on Aug 29, 2020

    @Technologicat
    OwnerAuthor

    Hmm, maybe we can use pyan3's modvis.py to 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...

  4. changed the title [-]Ordering of tests[/-] [+]Layer tests[/+] on Sep 4, 2020
  5. Technologicat commented on Sep 4, 2020

    @Technologicat
    OwnerAuthor

    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.

  6. modified the milestones: 0.14.3, 0.14.5 on Sep 11, 2020
  7. modified the milestones: 0.14.5, 0.15.x on Apr 12, 2021
  8. modified the milestones: 1.x, ∞ on Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions