-
Notifications
You must be signed in to change notification settings - Fork 95
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
Correct enumeration of tests when running tests from a folder (#920) #1066
Correct enumeration of tests when running tests from a folder (#920) #1066
Conversation
|
||
@Override | ||
public IDebugTarget getDebugTarget() { | ||
// TODO Auto-generated method stub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have not looked into the details. but please do remove all "TODO"s
also there alsoready is a MockLaunch
org.eclipse.jdt.debug.tests.connectors.MockLaunch, please choose another name. Also it would be good to somehow have less boiler plate code - maybe extend Launch like NoopLaunch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I've changed the code to use Launch which seems to work fine for the test cases.
979a719
to
6101e2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the test is not executed on jenkins. please reference it to be executed
https://ci.eclipse.org/jdt/job/eclipse.jdt.ui-github/job/PR-1066/3/consoleText
4ef5141
to
3e539ed
Compare
I've changed the test to JUnit 4 and added a suite. |
jenkins test fail with
please fix |
3e539ed
to
1bfd2ab
Compare
1bfd2ab
to
49c0b80
Compare
i rebased the commit to master, to get the tests running. just ping me if should forget to review the result |
@jukzi The tests have completed, please review |
49c0b80
to
6672a95
Compare
ok, tests are run and don't fail:
|
@Bananeweizen can you please review, as you have created the issue - does it solve your issue? |
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/junit/launcher/MockLaunchConfig.java
Outdated
Show resolved
Hide resolved
6672a95
to
f57326d
Compare
f57326d
to
5f268ae
Compare
@Bananeweizen ping |
11c8317
to
96f8718
Compare
@jukzi Can this go in for 2024-06 or do I still need to do something? |
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/junit/launcher/MockLaunchConfig.java
Show resolved
Hide resolved
96f8718
to
300c665
Compare
Is the commit based on master head? |
Sorry for completely missing the notifications here. That looks good to me. Thanks a lot for the change! |
It seems this PR caused regression, please check: #1651 |
I'll take a look but I can't say when. I have unreliable internet access at the moment. I don't know when I'll next have access that is good enough to do any work. |
What it does
Currently, when running tests from a source folder with JUnit 5, all tests that share a package with those packages in the selected source folder will be run (see #920). This attempts to fix this by enumerating all tests as suggested in #920.
I don't know if JDT uses a mocking framework so I mocked the needed classes by hand.
How to test
I've added a test case. I'm not sure if that is sufficient.
Author checklist
Edit: I've added a few more tests so I've set the checkmark for through testing.