<commit_before># Minitest::Flyordie

FlyOrDie is a simple plugin for Minitest that allows you to specify via command-line options a maximum duration for a test to be marked as "slow", and a maximum number of allowable slow tests.  
If the thresholds are exceeded, the test run will be marked as failed and the list of slow tests will be output.
FlyOrDie is primarily meant to be used as part of a Continuous Integration (CI) process to ensure test quality, sometimes referred to as a 'test ratchet'.

## Installation

Add this line to your application's Gemfile:

gem "minitest-flyordie"

```ruby
gem 'minitest-flyordie'
```

And then execute:

    $ bundle


## Usage

Use the `--maxslow COUNT` flag to set the maximum allowed number of slow tests
Use the `--slowtime DURATION` flag to specify the duration for a tests to be slow, in milliseconds

Direct invocation:

    `ruby test_thing.rb --maxslow 3 --slowtime 30`

Via rake test runner:

    `TESTOPTS='--maxslow 4 --slowtime 42' rake test`

## Contributing

1. Fork it ( https://github.com/[my-github-username]/minitest-flyordie/fork )
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 a new Pull Request<commit_msg>README additions<commit_after># Minitest::Flyordie

FlyOrDie is a simple plugin for Minitest that allows you to specify via command-line options a maximum duration for a test to be marked as "slow", and a maximum number of allowable slow tests.  
If the thresholds are exceeded, the test run will be marked as failed and the list of slow tests will be output.
FlyOrDie is primarily meant to be used as part of a Continuous Integration (CI) process to ensure test quality, sometimes referred to as a 'test ratchet'.

## Installation

Add this line to your application's Gemfile:

gem "minitest-flyordie"

```ruby
gem 'minitest-flyordie'
```

And then execute:

    $ bundle


## Usage

Use the `--maxslow COUNT` flag to set the maximum allowed number of slow tests
Use the `--slowtime DURATION` flag to specify the duration for a tests to be slow, in milliseconds

Direct invocation:

    `ruby test_thing.rb --maxslow 3 --slowtime 30`

Via rake test runner:

    `TESTOPTS='--maxslow 4 --slowtime 42' rake test`

## Credits

Based on ideas from Step and Nick. And code liberally copied from Nick's minitest-profile gem

## Contributing

1. Fork it ( https://github.com/[my-github-username]/minitest-flyordie/fork )
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 a new Pull Request
{'fraction_non_alphanumeric': 0.07986870897155361, 'fraction_numerical': 0.008023340627279359, 'mean_word_length': 3.9602169981916817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3329038', 'n_tokens_mistral': 867, 'n_tokens_neox': 783, 'n_words': 396}