-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove vulpix reflective nightmare #3445
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
Remove vulpix reflective nightmare #3445
Conversation
@@ -33,10 +33,12 @@ class CompilationTests extends ParallelTesting { | |||
|
|||
// @Test // enable to test compileStdLib separately with detailed stats | |||
def compileStdLib: Unit = { | |||
implicit val testGroup: TestGroup = TestGroup("compileStdLib") |
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.
You shouldn't need to give an explicit type signature here because the implicit val is in a def.
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.
Do you want me to remove them? I added them to avoid warnings from the IDE.
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.
Your call.
Can you explain what a test group is and what it is used for |
It is used as the name of the first level of folder nesting in the output of the tests. For example all output of |
25bb83a
to
162867f
Compare
I think it’s weird that outputDirecrory is not the actual output directory. It is also weird to add a new abstraction just to specify the output directory. Also we now have test group and test category that are two completely different things |
The test group was also used to determine the title of the tests. I wonder if we could instead remove the outputdirectory parameter. |
Use testGroup instead
Yes, the output directory was only used twice and was API overkill. |
@@ -0,0 +1,3 @@ | |||
package dotty.tools.vulpix | |||
|
|||
case class TestGroup(name: String) extends AnyVal |
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.
Please document what a TestGroup is.
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
No description provided.