Skip to content

turn remainder of the pos/run/jvm partest tests into JUnit ones #14

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

Merged
merged 6 commits into from
Nov 19, 2013

Conversation

adriaanm
Copy link
Contributor

Too bad we can't get rid of those neg tests. Any macro-thoughts, @retronym?

corresponding PR to bring back some tests coming soon at scala/scala

review by @gkossakowski

@adriaanm
Copy link
Contributor Author

See scala/scala#3135

@retronym
Copy link
Member

We can use the toolbox compiler to do this. Alternatively, we can could use IMain.

Here's how we do it in async.

https://github.com/scala/async/blob/master/src/test/scala/scala/async/package.scala#L34
https://github.com/scala/async/blob/master/src/test/scala/scala/async/neg/SampleNegSpec.scala

I suspect it will be even easier here as the manual classpath setting was only needed to
support injecting the async macro that was under test into the toolbox.

Most of the pos tests were incorporated in the ShouldCompile 'unit test'.
The others are going back to scala/scala.

I was a bit overzealous in moving stuff over to scala-xml
in scala/scala#9c50dd5. These were all compiler tests that
accidentally touched on xml. I've tried to delicately decouple them
so they can roam the scalac pastures as intended.
adriaanm added a commit that referenced this pull request Nov 19, 2013
turn remainder of the pos/run/jvm partest tests into JUnit ones
@adriaanm adriaanm merged commit 06f38a3 into scala:master Nov 19, 2013
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

Successfully merging this pull request may close these issues.

2 participants