eclipse-xtext / eclipse-xtext/xtext
Xtend IDE: find *.xtend tests cases on the package level
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Java
- Stars
- 831
- Forks
- 330
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 12
Description
Given is an Xtend Project with two test cases residing in the package foo:
package foo
import org.junit.Test
import static extension org.junit.Assert.assertEquals
class Foo1Test {
@Test def test() {
"bar".assertEquals("bar")
}
}
package foo
import org.junit.Test
import static extension org.junit.Assert.assertEquals
class Foo2Test {
@Test def test() {
"foo".assertEquals("foo")
}
}
The context menu Run As -> JUnit Test is missing wenn right clicking on the foo package:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the missing Run As → JUnit Test action by creating the two package-level Xtend test cases shown and right-clicking package foo in the Xtend IDE. Start at the package context-menu and JUnit launch handling; done means the action appears for the package and runs both test cases.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, testing, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100