xref: /aosp_15_r20/external/cronet/base/test/android/javatests/src/org/chromium/base/test/util/DoNotBatch.java (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.base.test.util;
6 
7 import java.lang.annotation.ElementType;
8 import java.lang.annotation.Retention;
9 import java.lang.annotation.RetentionPolicy;
10 import java.lang.annotation.Target;
11 
12 /**
13  * Annotation to indicate that this collection of tests is not safe to run in batches, where the
14  * Instrumentation Runner (and hence the process) does not need to be restarted between these
15  * tests.
16  *
17  * Tests that are not safe to run in batch should have this annotation with reasons.
18  *
19  * Tests should have either {@link Batch} or {@link DoNotBatch} annotation.
20  */
21 @Target(ElementType.TYPE)
22 @Retention(RetentionPolicy.RUNTIME)
23 public @interface DoNotBatch {
reason()24     String reason();
25 }
26