Skip to content

Allow classes to be used as test suite #393

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 2 commits into from
Jul 28, 2025
Merged

Allow classes to be used as test suite #393

merged 2 commits into from
Jul 28, 2025

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jul 28, 2025

Fixes #173

Probably should be the default way of defining test suites going forward, since classes are more hermetic than objects as by default any local members are not accessible outside the class whereas an objects local members are global

Needed to vendor a bit more code fro https://github.com/portable-scala/portable-scala-reflect to make lookupInstantiatableClass work in Scala 3

@lihaoyi lihaoyi merged commit d0c10a3 into master Jul 28, 2025
3 of 4 checks passed
@lihaoyi lihaoyi deleted the class-tests branch July 28, 2025 02:00
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.

TestSuite that extends from class is silently ignored.
1 participant