Documentation
¶
Overview ¶
Package testfile tells test code from other code by each language's own convention, from the path alone (size, test_suite reuses it). Nothing is parsed or run. See https://cernly.dev/how/plugins/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is reports whether the repo path is test code by convention:
go: *_test.go
ts/js: *.test.*, *.spec.*, __tests__/
python: test_*.py, *_test.py, conftest.py, tests/
java/kotlin: src/test/ (and Gradle's src/testFixtures/, src/integrationTest/),
*Test.java, *Tests.java, *IT.java (and .kt, .groovy)
ruby: *_spec.rb, *_test.rb, spec/
.NET: *Test.cs, *Tests.cs (and .fs, .vb), a folder ending in .Tests,
.UnitTests, .IntegrationTests or .Specs in any case; a path stand-in for
the files of a test project, which the dotnet plugin reads
any: a folder named test, tests, spec, e2e or testdata
Types ¶
This section is empty.