GithubHelp home page GithubHelp logo

maven-surefire-test-durations's Introduction

Maven Surefire Plugin Test Durations

This repo is solely for experimentation and investigation of the test durations reported by the Maven Surefire Plugin.

What I learned

I wrote the simplest test AppTest using Thread.sleep() to clearly provoke timings in the report that can be attributed back to the testcase or suite.

Surefire reports a time attribute for the

  • test suite (class) which includes the time it takes to run @BeforeClass methods and the total of all test cases
  • test case (method) which includes the time it takes to run @Before methods and the time it takes to run the test

See AppTest.xml

No surprises here ๐Ÿ˜‹๏ธ

IntelliJ suprised me a bit since it did not include the @BeforeClass time in the test duration. See screenshot.png

Related

If you want to convert Surefire XML reports to CSV for further processing head over to maven-surefire-reports-to-csv.

maven-surefire-test-durations's People

Contributors

teleivo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.