Currently you can pass anything to data and the test will crawl sources but this can lead to unexpected behavior cross-platform with generated files. Ideally the test rule would have some targets attribute that only accepts targets with ShInfo/ShBinaryInfo (bazel-contrib/rules_shell#16) where sources can more consistently be parsed.