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

Avoid compiling scope test for package/run/ commands #638

Merged
merged 5 commits into from
Feb 17, 2022

Conversation

lwronski
Copy link
Contributor

@lwronski lwronski commented Feb 8, 2022

No description provided.

@lwronski lwronski force-pushed the test-scope-compile branch 5 times, most recently from 7cf7bb4 to 4b4237e Compare February 9, 2022 12:16
@lwronski lwronski linked an issue Feb 9, 2022 that may be closed by this pull request
@lwronski lwronski marked this pull request as ready for review February 9, 2022 14:37
Copy link
Contributor

@alexarchambault alexarchambault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to ensure that --class-path makes compile print the full test scope class path, rather than the main one, when --test is passed.

For later: maybe the new CLI option could be moved to CompileCrossOptions. That would make most commands accept it, but we'd have to think about how each of them should use it (repl could put test classes in the class path, publish would publish test JARs alongside the main ones, test could even only look for tests in the main scope if --test=false is passed, etc.)

modules/build/src/main/scala/scala/build/Build.scala Outdated Show resolved Hide resolved
modules/build/src/main/scala/scala/build/Build.scala Outdated Show resolved Hide resolved
modules/build/src/main/scala/scala/build/Build.scala Outdated Show resolved Hide resolved
@lwronski lwronski merged commit acba26c into VirtusLab:main Feb 17, 2022
romanowski pushed a commit to romanowski/scala-cli that referenced this pull request Mar 10, 2022
* Avoid compiling scope test for package/run/

* Print fullClassPath from test if someone pass --class-path

* Remove shouldCompileTest from BuildOptions
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.

Don't compile test target when you package
2 participants