GithubHelp home page GithubHelp logo

test_times's Introduction

TestTimes

Get a report of test times when running mix test --times. Slowest tests appear at the bottom.

Sample report

t (ms) |                                              test path | test name 
======================================================================================
 19651 |        test/controllers/profile_controller_test.exs:17 | shows a number of cr
 21045 |      test/controllers/character_controller_test.exs:42 | create creates a cha
 21217 | test/controllers/password_reset_controller_test.exs:38 | submit_request shows
 22431 |       test/controllers/vehicle_controller_test.exs:407 | update re-renders th
 22907 |         test/controllers/signup_controller_test.exs:19 | welcome renders the 
 25079 |       test/controllers/vehicle_controller_test.exs:320 | update updates child
 25694 |     test/controllers/character_controller_test.exs:177 | create respects the 
 44538 | test/controllers/password_reset_controller_test.exs:20 | submit_request email
 50810 |     test/controllers/character_controller_test.exs:155 | create re-renders th
 70055 |     test/controllers/character_controller_test.exs:546 | update re-renders th
331136 |         test/controllers/signup_controller_test.exs:52 | signup renders an er
334917 |         test/controllers/signup_controller_test.exs:99 | login displays an er

Usage

Add a dependency in mix.exs:

{:test_times, "~> 1.0.0"}

Add a line to test/test_helper.exs before the call to ExUnit.start:

TestTimes.setup

When you want a report of times, use the --times flag

$ mix test --times

test_times's People

Contributors

pinfieldharm avatar

Stargazers

 avatar

Watchers

 avatar

test_times's Issues

Error Unknown option

On

Erlang/OTP 22 [erts-10.7.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]

Elixir 1.10.3 (compiled with Erlang/OTP 21)

When I run mix test --times

I get:

** (Mix) Could not invoke task "test": 1 error found!
--times : Unknown option

You can find the sample app that I've tried it with here: https://github.com/dunyakirkali/test_test_times

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.