Project

testament

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Time, record, and analyze test runs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 2.11.0

Runtime

~> 3.42.0
~> 1.3.6
~> 0.16.0
 Project Readme

Testament

Testament is a tool to track the cost of running tests.

Installation

$ gem install testament

Usage

To setup testament with your project run testament init on your project directory.

$ testament init .

This will create a .testament directory with the project config and the SQLite database that will store the test run information.

To track the time it takes to run your specs, run them like this every time:

$ testament record rspec spec

If you have your default rake task set to run your whole test suite, then you can do this:

$ testament record rake

You may want to create an alias to rake and rspec to run it with testament track automatically.

Reports

To view the default report, run the following in your project folder:

$ testament report

This will yield output like this:

+-----------+---------+-------+--------------+------------+
| Project   | Command | Count | Average time | Total time |
+-----------+---------+-------+--------------+------------+
| testament | rspec   | 4     | 6.03675      | 24.147     |
+-----------+---------+-------+--------------+------------+

To see a report from just today run the following:

$ testament report today

The report definitions are stored in .testament/report. You can edit the existing reports or create new ones.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request