Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(git): advanced test cases for include/exclude filters (#5472)
* test(git): group test cases into semantic contexts * test(git): fine-grained semantic contexts for include/exclude filters * test: excessive test cases for include filter To make sure include filter behaves equally when exclude is empty and undefined * test: one more test-case for include filter When the filename matches the filter, but the file path does not. * test: test-case for globs in include filter for files * test: test-case for globs in include filter for directories * test(git): more test cases for exclude filter * test(git): more detailed test cases for include filter * test(git): more test cases for include/exclude filter * test(git): do not check hashes for empty files in filter tests This does not make much sense. Hashes must be verified in the disk-based test projects. This makes the results fo the failed tests more readable. * test(git): (tmp) disable failing tests fir git-repo * test: move exclude/include tests to own context * test: use the right Garden instance in `getTreeVersion` tests * test: move `getTreeVersion` tests to `git.ts` To test the function against both `VcsHandler` implementations: - `GitHandler` - `GitRepoHandler` * test: fix scan mode definition in tests Make sure the same scan mode is used in all git handlers created while testing. * refactor(test): extract function to run git handler tests * refactor(test): simplified parameteric tests for exclude filter
- Loading branch information