Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 756 Bytes

TESTING.md

File metadata and controls

27 lines (18 loc) · 756 Bytes

How this gem is tested

We build a matrix of test cases from the gemfiles directory.

Each folder inside the gemfiles directory contains each of the different gem configurations we want to test with.

Then, for each gemfile folder, there's a scenarios file inside which lists all the individual ruby scripts we wish to test in that gemfile's environment.

Success for each test case is:

  1. Nothing unexpected was written to standard output
  2. The ruby script exited with status 0 (i.e. no exception was raised)

Running tests

Use this command (from the root) to run all the tests:

./test-all

Use this command to run a specific Gemfile's scenarios:

# Run scenarios just for rspec-3
./test-gemfile ./gemfiles/rspec-3