slawekjaranowski opened a new issue, #1467: URL: https://github.com/apache/maven-scm/issues/1467
### New feature, improvement proposal `StatusCommandTckTest` only runs status on an unfiltered file set: ```java scmManager.getProviderByUrl(getScmUrl()).status(repository, new ScmFileSet(getUpdatingCopy())); ``` No TCK scenario passes a file list or includes/excludes, so providers can drift apart unnoticed. The JGit provider ignored `fileSet.getFileList()` and always returned the full repository status, while gitexe filtered ([SCM-835](https://github.com/apache/maven-scm/issues/1065)). That was only fixed in #1370, with a JGit-only unit test (`JGitStatusCommandTest`). Proposal: extend `StatusCommandTckTest` with scenarios that every provider inherits, using the existing updating-copy setup (modified `pom.xml`, added `src/main/java/org/Foo.java`): - an explicit file list: `new ScmFileSet(basedir, new File("pom.xml"))`, which should report only `pom.xml`; - includes/excludes: `new ScmFileSet(basedir, "**/*.java", null)`, which should report only `Foo.java`; and with an exclude, `new ScmFileSet(basedir, "**/*", "pom.xml")`, which should not report `pom.xml`; - a file set whose base directory is a subdirectory of the working copy, so that paths relative to the base directory are mapped correctly to paths relative to the repository root. Scenarios a provider cannot support yet can be disabled in that provider's subclass, with a reference to an issue. Related: #1459, where a tracked file deleted on disk is not reported when includes are set. That case can be added to the TCK once it is fixed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
