3 ms·
...unless you use Apple's XCTest framework[0]. In that case, it's required that tests be prefixed with "test"[1]. [0] https://developer.apple.com/documentatio
by ChrisMarshallNY 4y ago
...unless you use Apple's XCTest framework[0].
In that case, it's required that tests be prefixed with "test"[1].
[0] https://developer.apple.com/documentation/xctest https://developer.apple.com/documentation/xctest
[1] https://developer.apple.com/documentation/xctest/defining_test_cases_and_test_methods https://developer.apple.com/documentation/xctest/defining_te...
- masklinn 4y agoThat is very common but some systems allow configuring the prefix (Or even switching to a suffix). For instance in python both unittest and pytest expect test cases to be prefixed by “test”, but unittest allows overriding this via the loader’s testMethodPrefix (https://docs.python.org/3/library/unittest.html#unittest.TestLoader.testMethodPrefix https://docs.python.org/3/library/unittest.html#unittest.Tes...) and pytest via the naming conventions configuration (https://docs.pytest.org/en/7.1.x/example/pythoncollection.html#changing-naming-conventions https://docs.pytest.org/en/7.1.x/example/pythoncollection.ht...).
- avinassh 4y agosame in Go, all test functions should start with `Test` prefix https://pkg.go.dev/testing#pkg-overview https://pkg.go.dev/testing#pkg-overview