You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the promotion of function naming I now see errors like "Function name should start with a lowercase letter (except factory methods) and use camel case" even though this is within a test. In our test case we use Kotest and no org.junit is used. Expected behavior would be that these functions are also considered as valid, because it's a test case.
Current Behavior
The following test case is considered to have an invalid function name. According to Function naming tests are considered to have an import of org.junit, org.testng or kotlin.test, but this example doesn't have any. This is partially due to the choice of using Kotest, but also because this is part of a maven plugin that extends from rather ancient test style nearly forced upon by the Maven Plugin Testing Harness.
packagesome.packageimportio.kotest.matchers.collections.shouldContainExactlyimportio.kotest.matchers.maps.shouldContainKeyimportkotlin.io.path.readLinesclassAgentMojoTest : BaseMojoTest() {
fun`test should write arg line`() { // considered as invalid
}
}
Expected Behavior
With the promotion of function naming I now see errors like "Function name should start with a lowercase letter (except factory methods) and use camel case" even though this is within a test. In our test case we use Kotest and no
org.junit
is used. Expected behavior would be that these functions are also considered as valid, because it's a test case.Current Behavior
The following test case is considered to have an invalid function name. According to Function naming tests are considered to have an import of
org.junit
,org.testng
orkotlin.test
, but this example doesn't have any. This is partially due to the choice of using Kotest, but also because this is part of a maven plugin that extends from rather ancient test style nearly forced upon by the Maven Plugin Testing Harness.Additional information
1.0.0
The text was updated successfully, but these errors were encountered: