Skip to main content

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"],
"scripts": {
"test": "bin/knapsack_pro_run_tests"
},
"env": {
"KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC": "MY_TOKEN"
}
}
}
}

This site uses cookies. By staying here you accept them. See our Cookie Policy for details.
For more information on how to turn off the use of cookies, please see this.
To refuse the use of cookies, please leave the page (more details here).