-
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
Adding test cases for folding #1960
Conversation
e041207
to
69cc34b
Compare
@fedejeanne @iloveeclipse Could you review this PR? |
I assume you will need different tests for your folding of control structures PR (#1562). For example, this could be @Suite
@SelectClasses({
FoldingTest.class,
// to be added in the future - not for your PR, I am just including that for your understanding
//ControlStructureFoldingTest.class,
//CustomFoldingRegionTest.class
})
public class FoldingTestSuite {
} It should then be possible to reference that test suite in Note: I am not experienced with JDT, I am just making a suggestion. |
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.
Looks pretty good, I think it covers most of the existing cases today. I would add some more test cases though.
org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/folding/FoldingTest.java
Show resolved
Hide resolved
69cc34b
to
d232b50
Compare
@fedejeanne @iloveeclipse What do you think of this? I’m capable of implementing it, but I don’t have enough experience to decide if this is the best way to structure the tests. |
e904cae
to
fe1cd9f
Compare
f1c39ba
to
621eaef
Compare
621eaef
to
4912480
Compare
Looks good. I will merge if the CodeQL check goes through or doesn't finish in the next few minutes. |
I have added test cases to validate the current folding mechanism.