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

Let people choose their test framework #59

Closed
wants to merge 1 commit into from

Conversation

pcalcado
Copy link
Contributor

Our services use scalatest's FunSpec or specs2, which requires us to copy-and-paste the SpecHelper.scala code just to remove the dependency on FlatSpec.

This PR avoids the problem by decoupling SpecHelper from FlatSpec.

Given this is a breaking change on the API, I am not sure what approach to take. I've created a FlatSpecHelper which should behave exactly like the old SpecHelper, and made it part of the test source as I believe it would be nice if Finatra itself doesnt bring a transitive dependency on scalatest. I guess keeping SpecHelper and extracting the common bits in a trait with a different name would also work, happy to do that if it's better.

So that users can select whicheve test framework or scalatest
flavour they fancy.
@capotej
Copy link
Contributor

capotej commented Sep 20, 2013

Nice! This is a great idea (and patch), but since it's a breaking API change, I'll merge it for the upcoming 1.4 release. Thanks!

@capotej
Copy link
Contributor

capotej commented Sep 23, 2013

Merged here 815b5e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants