-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow running long tests with testOnly #3227
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
Conversation
What about a solution based on junit categories? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but Allan's suggestion seems worth exploring too
b8cb05a
to
b4be01e
Compare
Modified code to use JUnit categories
project/Build.scala
Outdated
@@ -465,13 +465,13 @@ object Build { | |||
|
|||
test in Test := { | |||
// Exclude legacy tests by default | |||
(testOnly in Test).toTask(" -- --exclude-categories=java.lang.Exception").value | |||
(testOnly in Test).toTask(" -- --exclude-categories=java.lang.Exception,dotty.tools.dotc.SlowTests").value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that Drone will not run them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it won't. I will have to find a workaround
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
project/Build.scala
Outdated
}, | ||
|
||
testAll in Test := { | ||
// Exclude legacy tests by default | ||
(testOnly in Test).toTask(" -- --exclude-categories=java.lang.Exception").value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're at it, could you create a meaningful category for legacy tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will
@allanrenucci could you review the las commit |
Can we put all the categories in one file. Maybe under |
It does not work with |
Improves #3194