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

ScalaTest test cases with Scalatra, mixing in WordSpec, FlatSpec, etc... #21

Closed
rossabaker opened this issue Nov 30, 2010 · 0 comments
Closed
Assignees
Milestone

Comments

@rossabaker
Copy link
Member

http://groups.google.com/group/scalatra-user/browse_thread/thread/aeb8146135081413

I tried mixing in the WordSpec xor FlatSpec into test cases I wanted
to write, and it barfed on me with some errors, about how run was
defined in both traits (whichever one I mixed in and
BeforeAndAfterAll). Some googling turned up that BeforeAndAfterAll or
BeforeAndAfterEach needs to be mixed in LAST.

With the current implementation of ScalatraSuite this isn't workable.
The obvious and kinda sucky work around is to create ScalatraSuite
traits which inherit from each of the appropriate trait such that
there is appropriate functionality as desired.

@ghost ghost assigned rossabaker Jul 19, 2011
rossabaker added a commit that referenced this issue Jul 26, 2011
This allows extending ScalatraSuite with SubtypeOfSuite.  Previously, you
had to extend SubtypeOfSuite with ScalatraSuite (which still works).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant