Merge pull request #3137 from Philzen/patch-1 #908
Annotations
4 errors and 2 warnings
|
testng-core-api\src\main\java\org\testng\annotations\Test.java#L1
Replace 202 lines 1..202 with
package org.testng.annotations;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.testng.IRetryAnalyzer;
import org.testng.internal.annotations.DisabledRetryAnalyzer;
/** Mark a class or a method as part of the test. */
@retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@target({METHOD, TYPE})
public @interface Test {
/**
* The list of groups this class/method belongs to.
*
* @return the value
*/
String[] groups() default {};
...182 more lines
|
task ':testng-core-api:autostyleJavaCheck'#L1
Execution failed for task ':testng-core-api:autostyleJavaCheck':
See 'What went wrong' below
|
Execution failed for task ':testng-core-api:autostyleJavaCheck'.
> The following files have format violations:
src\main\java\org\testng\annotations\Test.java
@@ -1,202 +1,202 @@
-package org.testng.annotations;\r\n
-\r\n
-import static java.lang.annotation.ElementType.METHOD;\r\n
-import static java.lang.annotation.ElementType.TYPE;\r\n
-\r\n
-import java.lang.annotation.Retention;\r\n
-import java.lang.annotation.Target;\r\n
-import org.testng.IRetryAnalyzer;\r\n
-import org.testng.internal.annotations.DisabledRetryAnalyzer;\r\n
-\r\n
-/** Mark a class or a method as part of the test. */\r\n
-@retention(java.lang.annotation.RetentionPolicy.RUNTIME)\r\n
-@target({METHOD, TYPE})\r\n
-public @interface Test {\r\n
- /**\r\n
- * The list of groups this class/method belongs to.\r\n
- *\r\n
- * @return the value\r\n
- */\r\n
- String[] groups() default {};\r\n
-\r\n
- /**\r\n
- * Whether methods on this class/method are enabled.\r\n
- *\r\n
- * @return the value (default true)\r\n
- */\r\n
- boolean enabled() default true;\r\n
-\r\n
- /**\r\n
- * The list of groups this method depends on. Every method member of one of these groups is\r\n
- * guaranteed to have been invoked before this method. Furthermore, if any of these methods was\r\n
- * not a SUCCESS, this test method will not be run and will be flagged as a SKIP.\r\n
- *\r\n
- * @return the value\r\n
- */\r\n
- String[] dependsOnGroups() default {};\r\n
-\r\n
- /**\r\n
- * The list of methods this method depends on. There is no guarantee on the order on which the\r\n
- * methods depended upon will be run, but you are guaranteed that all these methods will be run\r\n
- * before the test method that contains this annotation is run. Furthermore, if any of these\r\n
- * methods was not a SUCCESS, this test method will not be run and will be flagged as a SKIP.\r\n
- *\r\n
- * <p>If some of these methods have been overloaded, all the overloaded versions will be run.\r\n
- *\r\n
- * @return the value\r\n
- */\r\n
- String[] dependsOnMethods() default {};\r\n
... (356 more lines that didn't fit)
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
|
This job failed
Loading