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

feat: add sbt.testing.Framework implementation for TestNG on classpath when needed #2606

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kasiaMarek
Copy link
Contributor

@kasiaMarek kasiaMarek commented Feb 13, 2025

connected to: scalameta/metals#6826
Should bump mill version after com-lihaoyi/mill#4506 to get single test cases support.

@kasiaMarek
Copy link
Contributor Author

Not sure if this is the best approach or if the it should be added to the classpath only for running test... But then I'm not sure where to best cache the result.
CC: @tgodzik

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Not sure if this is the best approach or if the it should be added to the classpath only for running test... But then I'm not sure where to best cache the result.

I think we are fine not caching it for now, this will only show up now when TestNG is used, right? One thing we could potentially do is not resolve it every time, so we can use val provider = BloopComponentCompiler.getComponentProvider(Paths.getCacheDirectory("testng")) similar to SemanticDBCache though a bit easier.

Could you add a test case to BspTestSpec ?

val project = Project.fromConfig(testNGProjectConfig(logger), origin, logger)

val platform = project.platform.asInstanceOf[Platform.Jvm]
pprint.log(platform.classpath)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pprint.log(platform.classpath)

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