Skip to content

Test can be skipped #15463

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 3 commits into from
Oct 25, 2022
Merged

Test can be skipped #15463

merged 3 commits into from
Oct 25, 2022

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Jun 16, 2022

A test can skip itself. There is no notion of TestState and TestReporter was not modified to carry "skipped" count, but that is a likely follow-up to this commit.

Since tests are asked to report on themselves, they must skip doing that when they were skipped.

When TestReporter reports skipped tests, then the infra can skip asking tests to report.

This is a follow-up to #14882 which introduced skipping a test when a minimum JDK version is required.

[test_windows_full]
[test_java8]

@som-snytt som-snytt marked this pull request as draft June 16, 2022 22:40
@som-snytt som-snytt force-pushed the issue/broken-jdk8-testing branch from b7adb4c to 48595fb Compare June 23, 2022 18:26
def scalacOptions = toolArgs.get(ToolName.Scalac).getOrElse(Nil)
def scalacOptions =
toolArgs.get(ToolName.Scalac)
.map(args => if args.exists(_.startsWith("-release")) then args else "-release" :: minRelease :: args)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually defaulting -release 8 was deemed problematic, so at best it should be introduced under a test flag of some sort.

@lrytz lrytz reopened this Oct 20, 2022
@lrytz lrytz force-pushed the issue/broken-jdk8-testing branch from 48595fb to c9f692a Compare October 20, 2022 15:16
@lrytz lrytz marked this pull request as ready for review October 21, 2022 07:01
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

<3

@dwijnand dwijnand merged commit ad4c4ac into scala:main Oct 25, 2022
@som-snytt som-snytt deleted the issue/broken-jdk8-testing branch July 22, 2023 16:25
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.

3 participants