Using Knapsack Pro with Heroku CI
Run multiple test suites
Heroku CI allows only one test script in app.json
, but you may want to run multiple test suites (e.g., RSpec and Cucumber).
You can create a script as described in Run multiple test suites with one script and use it in scripts.test
:
{
"environments": {
"test": {
"formation": {
"test": {
"quantity": 2
}
},
"addons": [
"heroku-postgresql:in-dyno",
"heroku-redis:in-dyno"
],
"scripts": {
"test": "bin/knapsack_pro_run_tests"
},
"env": {
"KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC": "MY_TOKEN"
}
}
}
}