New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easier to run a subset of the buildpack unit tests locally #1020
Comments
edmorley
added a commit
that referenced
this issue
Jul 28, 2020
Before `make test` ran all unit test suites against all stacks, which would take up to an hour locally. This could be sped up by using one of the stack-specific targets (such as `make test-heroku-18`), however there was still no way to only run one of the test suites. Now `make test` can be controlled more precisely using optional `STACK` and `TEST_CMD` arguments, eg: `make test STACK=heroku-16 TEST_CMD=test/versions` Travis has now been made to use this feature, which unblocks future Travis speedups (such as splitting the jobs up further in #1018) and means on Travis the correct Docker image is now used. The `tests.sh` script has been removed since it's unused after #839 and redundant given the make targets. Fixes #958. Fixes #1020.
edmorley
added a commit
that referenced
this issue
Jul 28, 2020
Previously `make test` ran all unit test suites against all stacks, which would take up to an hour locally. This could be sped up by using one of the stack-specific targets (such as `make test-heroku-18`), however there was still no way to only run one of the test suites. Now `make test` can be controlled more precisely using optional `STACK` and `TEST_CMD` arguments, eg: `make test STACK=heroku-16 TEST_CMD=test/versions` Travis has now been made to use this feature, which unblocks future Travis speedups (such as splitting the jobs up further in #1018) and means on Travis the correct Docker image is now used (see #958). The `tests.sh` script has been removed since it's unused after #839 and redundant given the make targets. Fixes #958. Fixes #1020.
dryan
pushed a commit
to dryan/heroku-buildpack-python
that referenced
this issue
Nov 19, 2020
Previously `make test` ran all unit test suites against all stacks, which would take up to an hour locally. This could be sped up by using one of the stack-specific targets (such as `make test-heroku-18`), however there was still no way to only run one of the test suites. Now `make test` can be controlled more precisely using optional `STACK` and `TEST_CMD` arguments, eg: `make test STACK=heroku-16 TEST_CMD=test/versions` Travis has now been made to use this feature, which unblocks future Travis speedups (such as splitting the jobs up further in heroku#1018) and means on Travis the correct Docker image is now used (see heroku#958). The `tests.sh` script has been removed since it's unused after heroku#839 and redundant given the make targets. Fixes heroku#958. Fixes heroku#1020.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The buildpack's unit tests are split into three:
tests/deps
,tests/features
andtests/versions
.On travis these are run separately, via hardcoded invocations in
.travis.yml
.However locally there is currently no
make
target to allow doing this - instead all tests for a stack have to be run using egmake test-heroku-18
- so on several occasions I've hand-editedMakefile
locally to make the target only run one of the three test suites to speed up testing.This is a pain since I have to revert the changes each time -- we should instead add support for doing this natively.
The text was updated successfully, but these errors were encountered: