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

Better user error if User extends a Spec with parameters? #2223

Open
mwachs5 opened this issue Jan 20, 2023 · 1 comment
Open

Better user error if User extends a Spec with parameters? #2223

mwachs5 opened this issue Jan 20, 2023 · 1 comment

Comments

@mwachs5
Copy link

mwachs5 commented Jan 20, 2023

If I (erroneously) extend a Spec in this way:

package mytest

class MySpec(foo: Int) extends AnyFunSpec {
...

}

Then invoke scalatest with:
-s mytest.MySpec

I get a RUN ABORTED message, with no other information.

Am I missing some flag that would say something more descriptive like "RUN ABORTED: Couldn't build constructor" or "RUN ABORTED: Scalatest can't pass constructor parameters to something that extends a Spec"?

@cheeseng
Copy link
Contributor

cheeseng commented Sep 5, 2023

@mwachs5 Sorry for the really late response, but hopefully this open PR shall improve the mentioned problem:

#2269

Cheers.

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

No branches or pull requests

2 participants