mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 03:45:02 +00:00
Added log info on test finished
This commit is contained in:
parent
6e19ca8080
commit
6b8dd0b08f
@ -13,7 +13,7 @@ import org.junit.runner.notification.RunListener;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A {@link RunListener} that emits to {@link System#err} a string with command
|
* A {@link RunListener} that emits to {@link System#err} a string with command
|
||||||
* line parameters allowing quick test re-run under ANT command line.
|
* line parameters allowing quick test re-run under MVN command line.
|
||||||
*/
|
*/
|
||||||
public class ReproduceInfoPrinter extends RunListener {
|
public class ReproduceInfoPrinter extends RunListener {
|
||||||
|
|
||||||
@ -24,6 +24,11 @@ public class ReproduceInfoPrinter extends RunListener {
|
|||||||
logger.info("Test {} started", description.getDisplayName());
|
logger.info("Test {} started", description.getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void testFinished(Description description) throws Exception {
|
||||||
|
logger.info("Test {} finished", description.getDisplayName());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void testFailure(Failure failure) throws Exception {
|
public void testFailure(Failure failure) throws Exception {
|
||||||
// Ignore assumptions.
|
// Ignore assumptions.
|
||||||
|
@ -19,13 +19,15 @@
|
|||||||
|
|
||||||
package org.elasticsearch.test.integration;
|
package org.elasticsearch.test.integration;
|
||||||
|
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
|
import com.carrotsearch.randomizedtesting.annotations.*;
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;
|
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope;
|
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope;
|
||||||
import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
|
|
||||||
import org.apache.lucene.analysis.BaseTokenStreamTestCase;
|
import org.apache.lucene.analysis.BaseTokenStreamTestCase;
|
||||||
import org.apache.lucene.util.TimeUnits;
|
import org.apache.lucene.util.TimeUnits;
|
||||||
|
import org.elasticsearch.junit.listerners.ReproduceInfoPrinter;
|
||||||
|
|
||||||
|
@Listeners({
|
||||||
|
ReproduceInfoPrinter.class
|
||||||
|
})
|
||||||
@ThreadLeakFilters(defaultFilters = true, filters = {ElasticSearchThreadFilter.class})
|
@ThreadLeakFilters(defaultFilters = true, filters = {ElasticSearchThreadFilter.class})
|
||||||
@ThreadLeakScope(Scope.NONE)
|
@ThreadLeakScope(Scope.NONE)
|
||||||
@TimeoutSuite(millis = TimeUnits.HOUR)
|
@TimeoutSuite(millis = TimeUnits.HOUR)
|
||||||
|
@ -19,14 +19,16 @@
|
|||||||
|
|
||||||
package org.elasticsearch.test.integration;
|
package org.elasticsearch.test.integration;
|
||||||
|
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
|
import com.carrotsearch.randomizedtesting.annotations.*;
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;
|
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope;
|
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope;
|
||||||
import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
|
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||||
import org.apache.lucene.util.TimeUnits;
|
import org.apache.lucene.util.TimeUnits;
|
||||||
|
import org.elasticsearch.junit.listerners.ReproduceInfoPrinter;
|
||||||
|
|
||||||
|
@Listeners({
|
||||||
|
ReproduceInfoPrinter.class
|
||||||
|
})
|
||||||
@ThreadLeakFilters(defaultFilters = true, filters = {ElasticSearchThreadFilter.class})
|
@ThreadLeakFilters(defaultFilters = true, filters = {ElasticSearchThreadFilter.class})
|
||||||
@ThreadLeakScope(Scope.NONE)
|
@ThreadLeakScope(Scope.NONE)
|
||||||
@TimeoutSuite(millis = TimeUnits.HOUR)
|
@TimeoutSuite(millis = TimeUnits.HOUR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user