Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: handling broken tests per https://issues.apache.org/jira/browse/IGNITE-10178

...

We try to not use commented code. So, in case if test(s) is broken the test should be muted on TeamCity with annotated @Ignore with a related to JIRA ticket comment which describe a reason of fail.

If test hangs or works too long then 

Code Block
fail@Ignore("https://issues.apache.org/jira/browse/IGNITE-111310178");

method Annotation should be added as first line of the testin the line preceding respective @Test annotation.

To disable all tests in *Test class use use the same annotation at the line preceding class declaration.

Code Block
/** {@inheritDoc} */
@Override protected void beforeTest() throws Exception@Ignore("https://issues.apache.org/jira/browse/IGNITE-10178")
public class SomeTest() {
    fail//...
}

Additionally, it is recommended to use Assume API (org.junit.Assume) if you want to conditionally skip some test.

Code Block
Assume.assumeFalse("https://issues.apache.org/jira/browse/IGNITE-111310178", someRuntimeCondition());
}


C. Code Inspection

Apache Ignite has settings of inspection rules that recommended to use during Ignite development. Settings can be found at <project directory>\.idea\inspectionProfiles\Project_Default.xml and will be automatically set as project default settings at first checkout.

...