Skip to content

Make JUnit tests runnable from the command line #4

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

Closed
wants to merge 1 commit into from

Conversation

retronym
Copy link
Member

  • Update the build to SBT 0.13.0
    • Update Scala dependency to 2.11.0-M6
    • Add dependency on JUnit
    • Update DottyTest to use the setting useJavaCP = true
    • Update PathResolver to be aware of the protocol for an embedded Scala
      instance to discover the boot and app classpaths from the host SBT
      classloader

After this, I see two test failures:

[error] Test test.ShowClassTests.loadClassWithPrivateInnerAndSubSelf failed: java.lang.Error: null
[error]     at dotty.tools.dotc.core.Symbols$class.newStubSymbol(Symbols.scala:188)
[error]     ...
[info] Test test.ShowClassTests.loadDotty started
[info] Test test.ShowClassTests.showReflectAliases started
[error] Test test.ShowClassTests.showReflectAliases failed: java.lang.Error: null
[error]     at dotty.tools.dotc.core.Symbols$class.newStubSymbol(Symbols.scala:188)

@retronym
Copy link
Member Author

Review by @odersky

 - Update the build to SBT 0.13.0
 - Update Scala dependency to 2.11.0-M6
 - Add dependency on JUnit
 - Update DottyTest to use the setting `useJavaCP = true`
 - Update PathResolver to be aware of the protocol for an embedded Scala
   instance to discover the boot and app classpaths from the host SBT
   classloader

After this, I see two test failures:

    [error] Test test.ShowClassTests.loadClassWithPrivateInnerAndSubSelf failed: java.lang.Error: null
    [error]     at dotty.tools.dotc.core.Symbols$class.newStubSymbol(Symbols.scala:188)
    [error]     ...
    [info] Test test.ShowClassTests.loadDotty started
    [info] Test test.ShowClassTests.showReflectAliases started
    [error] Test test.ShowClassTests.showReflectAliases failed: java.lang.Error: null
    [error]     at dotty.tools.dotc.core.Symbols$class.newStubSymbol(Symbols.scala:188)
VladUreche pushed a commit that referenced this pull request Feb 6, 2014
Towards #4: dotc.tests working on my machine
@DarkDimius
Copy link
Contributor

@retronym, as far as I understand, this issue is already fixed now. Can you please confirm?

@retronym
Copy link
Member Author

Yep, I'll close this.

@retronym retronym closed this Feb 20, 2014
smarter pushed a commit that referenced this pull request Mar 12, 2020
romanowski referenced this pull request in romanowski/dotty Oct 23, 2020
Basic support for methods, generics does not work.
KacperFKorban referenced this pull request in KacperFKorban/dotty Mar 25, 2021
smarter pushed a commit to smarter/dotty that referenced this pull request Apr 28, 2023
Apply kind-polymorphism.md.
WojciechMazur added a commit to WojciechMazur/dotty that referenced this pull request Mar 19, 2025
Backport "Make right assoc ext method fwd refs error" to LTS
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