All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.noconnor.junitperf.JUnitPerfTestRequirement Maven / Gradle / Ivy

There is a newer version: 1.37.0
Show newest version
package com.github.noconnor.junitperf;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface JUnitPerfTestRequirement {

  // Expected target percentile distribution in the format "percentile1:expected_value_ms,percentile2:expected_value_ms,..."
  String percentiles() default "";

  // Expected test throughput (executions per second)
  int executionsPerSec() default 1;

  // Expected % of test failures. Failures are measured as test case exceptions
  float allowedErrorPercentage() default 1;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy