0.0
No release in over 3 years
Low commit activity in last 3 years
Provides the fix command to run specs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0
~> 12.3
~> 0.67
~> 0.16
~> 3.0
~> 0.9

Runtime

~> 0.18.0
 Project Readme

Fix::Command

Version Yard documentation CI RuboCop License

Provides the fix command with several options.

Installation

Add this line to your application's Gemfile:

gem "fix-command"

And then execute:

$ bundle

Or install it yourself as:

$ gem install fix-command

Usage

First, let's see the API:

$ fix --help
Usage: fix <directory> [options]

Specific options:
        --[no-]debug                 Enable ruby debug
        --[no-]warnings              Enable ruby warnings
        --[no-]diff                  Regression test selection
        --random [SEED]              Predictable randomization
        --prefix [PREFIX]            Prefix of the spec files
        --suffix [SUFFIX]            Suffix of the spec files

Common options:
    -h, --help                       Show this message
    -v, --version                    Show the version

And second, let's run a test:

$ fix ./app/ --prefix test_ --suffix --diff
> fix /Users/bob/app/duck_fix.rb --diff --random 198142038504094374390860708229193114294 --prefix "test_" --suffix ""

/Users/bob/app/duck_fix.rb ..

Ran 2 tests in 0.000382 seconds
100% compliant - 0 infos, 0 failures, 0 errors

Store Command Line Options

You can store command-line configuration options in a .fix file in two different locations:

  • Local: "./.fix" (i.e. in the project's root directory)
  • Global: "~/.fix" (i.e. in the user's home directory)

Fix::Command will thus read them as though you typed them on the command-line.

Options declared in the local file override those in the global file, while those declared in command-line will override any ".fix" file.

Contact

Versioning

Fix::Command follows Semantic Versioning 2.0.

License

The gem is available as open source under the terms of the MIT License.


This project is sponsored by:
Sashite