...

/

Putting Tests and Other Quality Checks in the bin/ci command

Putting Tests and Other Quality Checks in the bin/ci command

Learn about the quality checks and testing procedures within our Rails application.

In the output of bin/setup help, we saw a reference to bin/ci, which is what we’ll create now. This script runs whatever tests and quality checks the app might need and is named ci for continuous integration. Once this script is created, we should be able to configure our CI environment to use bin/setup and bin/ci as our entire check. This is also where we can run bin/setup twice in a row to make sure it’s idempotent. This is the key to ensuring our bin/setup stays working, even if developers don’t use it every day.

bin/setup # perform the actual setup
bin/setup # ensure setup is idempotent
bin/ci    # perform all checks

Automated security checks

We already have ...