Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exact dependency matching #343

Merged

Commits on May 20, 2023

  1. Add sequentialTestGroup

    Tasty 1.2 introduced a way for tests to specify dependencies. That is,
    what tests should run before themselves. These dependencies are
    specified using an AWK-like expression annotated to a `TestTree`. These
    expressions can match against any test in the full `TestTree`. This
    approach has a few rough edges:
    
      * Any pattern has to be tested against any test in the tree. If your
        test tree mostly consists of tests specifying dependencies for each
        other, this means calculating your test tree is of quadratic
        complexity.
    
      * It's easy to introduce dependency cycles, or other mistakes
        introducing needless sequentiality. The latter being especially
        insidious as it easily goes unnoticed.
    
    This commit introduces the ability to specify dependencies by using a
    combinator taking a list of `TestTree`s. This way of specifying dependencies
    removes the quadratic complexity in favor of a linear one, while
    eliminating the ability to accidentally introduce cycles or unintended
    sequentiality.
    martijnbastiaan committed May 20, 2023
    Copy the full SHA
    4d937e4 View commit details
    Browse the repository at this point in the history