apache / apache/grails-intellij-plugin

Can not run testcase with Grails if testcase is in abstract test-class

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

Given this hierarchy of test classes:
```
class FileSystemLinuxTests extends AbstractTests
class FileSystemWindowsTests extends AbstractTests
```
I have all test-cases in `AbstractTests` and in subclasses I just instantiate the "filesystem" under test.

**Expected**:
I am able to start a test from within the `AbstractTests` class.

**Actual**:
- If I go to `AbstractTests` and press `Ctrl+Shift+F10` inside a test method, I get the options to start the JUnit tests for one of the sub-classes. No option to use Grails runner.
- If I go to `AbstractTests` and press `Ctrl+Shift+F10` outside the test method, I get the options to start the tests using Grails, but it fails because IDEA doesn't notice this is an abstract class.

---

*Imported from [IDEA-109802](https://youtrack.jetbrains.com/issue/IDEA-109802) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with AbstractTests, FileSystemLinuxTests, and FileSystemWindowsTests in IntelliJ IDEA using Ctrl+Shift+F10 from inside and outside a test method. Trace the Grails test-runner selection and abstract-class handling; done means a test started from AbstractTests offers a working Grails runner without failing on the abstract class.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.