Commit 83445893 authored by Yan Couto's avatar Yan Couto

Switching test README sections

parent 85e32e5a
...@@ -8,12 +8,6 @@ Running these tests will make sure that crew is working correctly, or explain th ...@@ -8,12 +8,6 @@ Running these tests will make sure that crew is working correctly, or explain th
The tests can be used at any time to help with developing, but make sure to run them before submitting a Pull Request. The tests can be used at any time to help with developing, but make sure to run them before submitting a Pull Request.
## How to run tests
Execute `ruby test_all` from this directory (`tests/`). If all tests pass, it will print `All tests successful.`, otherwise it will show what went wrong.
Running tests manually may not work!
## Preparing new tests ## Preparing new tests
To prepare a new test, create a `.rb` file. It may use crew constants (created in `lib/const.rb`) and import packages (be sure to use `require_relative`). To prepare a new test, create a `.rb` file. It may use crew constants (created in `lib/const.rb`) and import packages (be sure to use `require_relative`).
...@@ -35,3 +29,9 @@ else ...@@ -35,3 +29,9 @@ else
exit 1 exit 1
end end
``` ```
## How to run tests
Execute `ruby test_all` from this directory (`tests/`). If all tests pass, it will print `All tests successful.`, otherwise it will show what went wrong.
Running tests manually may not work!
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment