Skip to content
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

Wrap test framework dependencies #23

Merged
merged 2 commits into from
Apr 24, 2014

Conversation

sgerrand
Copy link
Contributor

💁 The intent of these changes is twofold:

  • continuing the work from Streamline test suite #16, remove the inline calls to RubyGems and move the test suite dependencies into the helper
  • wrap the test framework dependencies into a Fastly::TestCase class so that Test::Unit can be more easily swapped out for Minitest

Following on from these changes, I intend to add unit tests for the library classes themselves to complement the existing integration tests. I'm interested in getting feedback though, so please let me know if these changes are in tune with the project's intent.

* Change to use Minitest instead of Test::Unit. It replaced Test::Unit
  in the stdlib in v1.9, so might as well use it explicitly.
* Added a Fastly::TestCase class that wraps Minitest and updated
  the existing classes to use this wrapper. This enables the framework
  to be changed easily at a later date if required.
* Removed the inline calls to require RubyGems and Test::Unit.
* Removed the file munging for requiring {common,helper}.rb - using
  Rake::TestTask sets the load path correctly and also allows
  individual tests to be run.
* Added a test against the Minitest version to accommodate >= 5 for the
  Fastly::TestCase class.
@set5think
Copy link

@sgerrand Sorry for the delay in getting back to you; This is really great - we typically use Minitest::Spec in-house and I've been getting around to switching this over as well; so this is definitely a great start. Merging now.

set5think pushed a commit that referenced this pull request Apr 24, 2014
Wrap test framework dependencies and switch to minitest
@set5think set5think merged commit 30f3721 into fastly:master Apr 24, 2014
@ezkl
Copy link
Contributor

ezkl commented Apr 24, 2014

👍

@sgerrand
Copy link
Contributor Author

No worries. 😅

@sgerrand sgerrand deleted the wrap-testing-dependencies branch April 25, 2014 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants