ca.nanometrics.maven.plugins:maven-testtime-parent

Tools to display how long tests took to run

License

License

Categories

Categories

Maven Build Tools Metrics Application Testing & Monitoring Monitoring
GroupId

GroupId

ca.nanometrics.maven.plugins
ArtifactId

ArtifactId

maven-testtime-parent
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

ca.nanometrics.maven.plugins:maven-testtime-parent
Tools to display how long tests took to run
Project URL

Project URL

https://github.com/nanometrics/maven-testtime
Source Code Management

Source Code Management

http://github.com/nanometrics/maven-testtime/tree/master

Download maven-testtime-parent

How to add to project

<!-- https://jarcasting.com/artifacts/ca.nanometrics.maven.plugins/maven-testtime-parent/ -->
<dependency>
    <groupId>ca.nanometrics.maven.plugins</groupId>
    <artifactId>maven-testtime-parent</artifactId>
    <version>1.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/ca.nanometrics.maven.plugins/maven-testtime-parent/
implementation 'ca.nanometrics.maven.plugins:maven-testtime-parent:1.0.0'
// https://jarcasting.com/artifacts/ca.nanometrics.maven.plugins/maven-testtime-parent/
implementation ("ca.nanometrics.maven.plugins:maven-testtime-parent:1.0.0")
'ca.nanometrics.maven.plugins:maven-testtime-parent:pom:1.0.0'
<dependency org="ca.nanometrics.maven.plugins" name="maven-testtime-parent" rev="1.0.0">
  <artifact name="maven-testtime-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='ca.nanometrics.maven.plugins', module='maven-testtime-parent', version='1.0.0')
)
libraryDependencies += "ca.nanometrics.maven.plugins" % "maven-testtime-parent" % "1.0.0"
[ca.nanometrics.maven.plugins/maven-testtime-parent "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.5.0
org.apache.maven : maven-plugin-api jar 3.5.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.apache.maven.shared : maven-verifier jar 1.6
org.hamcrest : java-hamcrest jar 2.0.0.0

Project Modules

  • testtime
  • testtime-maven-plugin
  • testtime-maven-extension
  • testtime-tests

Maven Test Time Profiler

TestTime consists of a maven plugin and extension that show the top N slowest unit tests and suites.

Apache License, Version 2.0, January 2004 Maven Central Build Status

Single Module Projects

For single module builds, use the plugin. It will display the 5 slowest suites and tests in the log after the test phase, and it will create a testtimes.txt file in the target directory with the 20 slowest.

  <build>
    <plugins>
      <plugin>
        <groupId>ca.nanometrics.maven.plugins</groupId>
        <artifactId>testtime-maven-plugin</artifactId>
        <version>1.0.0</version>
        <executions>
          <execution>
            <goals>
              <goal>display</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

Multi-Module Projects

For multi-module builds, you can use the extension to get a single testtimes.txt file in the top level project target directory, if you want.

In the top-level pom, put:

  <build>
    <extensions>
      <extension>
        <groupId>ca.nanometrics.maven.plugins</groupId>
        <artifactId>testtime-maven-extension</artifactId>
        <version>1.0.0</version>
      </extension>
    </extensions>
  </build>

You can still use the plugin above on multi-module projects too, and get individual project reports, if desired.

Properties

There are 2 system properties to control the number of results that are shown.

  • testtime.loglimit - the number of slow tests/suites to show in the log
  • testtime.filelimit - the number of slow tests/suites to show in the file

e.g. mvn -Dtesttime.loglimit=10 install

ca.nanometrics.maven.plugins

Nanometrics

Versions

Version
1.0.0