-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change refactors tests with fixtures and cases using `rstest`. This reports a more complete list of failures (each case is attempted regardless of the status of other cases) and makes adding cases easier. The names of tests now generally describe an action, a subject, a qualifier, and finally an expectation, such as `new_glob_with_literal_is_ok` and `walk_path_with_not_excludes_only_matching_paths`. Some of these components are absent when described by or dependent upon cases. Assertions and testing functions are exported in `harness` modules, which can be composed in some tests. Notably, a bug regarding depth variance is also fixed by this change. Previously, the depth of patterns using tree wildcards did not consider adjacent components (because such components do not have accompanying separators). For example, `a/**/b/**/c` had unbounded depth, but now has depth in the range [3,] (three or more).
- Loading branch information
1 parent
8dd36ec
commit 93c5926
Showing
10 changed files
with
1,889 additions
and
1,322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.