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

Exclude anonymous class in JUnit Platform #4774

Merged
merged 4 commits into from
Mar 21, 2018

Conversation

blindpirate
Copy link
Collaborator

This fixes #4544 #4618

Previously we send anonymous class to JUnit Platform test worker, which caused some issues.
Now they're excluded by name pattern .*\$\d+

This fixes #4544 #4618

Previously we send anonymous class to JUnit Platform test worker, which caused some issues.
Now they're excluded by name pattern .*\$\d+
@blindpirate blindpirate added this to the 4.7 RC1 milestone Mar 20, 2018
@blindpirate blindpirate self-assigned this Mar 20, 2018
@blindpirate blindpirate requested a review from oehme March 20, 2018 10:03
@oehme
Copy link
Contributor

oehme commented Mar 20, 2018

We should exclude them on the daemon side already. I don't think passing anononymous classes makes sense for any test framework.

Copy link
Contributor

@oehme oehme left a comment

Choose a reason for hiding this comment

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

LGTM

I was gonna propose using a test class processor, but by filtering these in the scanner we avoid visiting the class, which saves some additional time 👍

@blindpirate
Copy link
Collaborator Author

@oehme Your thoughts are exactly same as me :)

@blindpirate blindpirate force-pushed the blindpirate/donot-load-class branch 2 times, most recently from abbb871 to cbec130 Compare March 21, 2018 01:29
@blindpirate blindpirate merged commit abeb7eb into master Mar 21, 2018
@blindpirate blindpirate deleted the blindpirate/donot-load-class branch March 21, 2018 07:16
blindpirate added a commit that referenced this pull request Mar 22, 2018
blindpirate added a commit that referenced this pull request Mar 22, 2018
This fixes #4544 #4618

Previously we send anonymous class to JUnit Platform test worker, which caused some issues.
Now they're excluded by name pattern .*\$\d+
acourtneybrown pushed a commit that referenced this pull request Mar 22, 2018
* master: (30 commits)
  Fix NPE in capabilities conflict resolution
  By default don't render the welcome message to avoid test flakiness (#4796)
  Change console tests to require parallel execution only for specific tests
  Update user guide to reflect new plain console format
  Ensure console tests run with plain, rich and verbose modes
  Revert "Exclude anonymous class in JUnit Platform (#4774)"
  Add @ToBeImplemented integration tests for #4799
  Always report Checkstyle violations-summary from xml report (#3901)
  Remove the verbose flag by default for `swiftc`
  Fix failing unit tests
  Fix test failure due to missing API export from application
  Fix tests and share code between C++ and Swift
  Wire operatingSystem into Swift binary types
  Remove spurious newline from tests that check output
  Fix issue with timeout in test
  Tasks that print output to the console hold it for as long as possible
  Up long running task timeout to 30s
  Create directory
  Fix path for Windows
  Create marker file to prevent rendering of initial welcome message
  ...
blindpirate added a commit that referenced this pull request Mar 23, 2018
This fixes #4544 #4618

Previously we send anonymous class to JUnit Platform test worker, which caused some issues.
Now they're excluded by name pattern .*\$\d+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.6 - JUnit Platform Support - "NoClassDefFoundError" from Gradle Test Executor propagated to build
2 participants