Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Unit testing and minor buildpack tweaks #4

Merged
merged 17 commits into from
Jan 21, 2012
Merged

Conversation

naaman
Copy link

@naaman naaman commented Jan 20, 2012

  • Basic test coverage for the play buildpack
  • Some additional tweaks were made to the compile and detect scripts for portability
  • Note: this is using a workaround where we host full copies of the play framework in a new s3 bucket (heroku-jvm-buildpack-play-test). We need this for testing purposes and the .zip files hosted on the play framework site cannot be unzipped in a dyno -- we need gzip formatted archives. The current hosted versions of the framework are not full copies and can't be used either (e.g. play new doesn't work).


. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh

# test modules and ivy deps from build time are removed and not included in the slug
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this comment?

@ryanbrainard
Copy link
Contributor

genernal nit picks:

  • use detect, compile, release instead of manually capturing
  • assertion message consistency
  • use assertFile(Not)Contains instead of assert(Not)Contains. might even consider creating new assertCaptured function so we don't have to repeat ${STD_OUT} everywhere.

* Cleanup assertions to use new utility assertions
* Fix upgrade logic so that it removes the old play framework when upgrading versions
@naaman
Copy link
Author

naaman commented Jan 20, 2012

Fixed all your nitpicks. Merge it!

ryanbrainard added a commit that referenced this pull request Jan 21, 2012
Unit testing and minor buildpack tweaks
@ryanbrainard ryanbrainard merged commit 0dde325 into heroku:master Jan 21, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants