apache / apache/grails-core

open test-report command is opening incorrect path

Open
#12,811 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

### Expected Behavior

when you use open test-report in grails CLI as denoted in documentation https://docs.grails.org/latest/guide/testing.html it should open up the report, which currently grails generates in path: build/reports/tests/test/index.html

### Actual Behaviour

It throws an error |

Error Error opening file build/reports/tests/index.html: The file: build/reports/tests/index.html doesn't exist. (Use --stacktrace to see the full trace)

observe, the path mentioned is different, it lacks the "test" folder after the "tests" folder.

### Steps To Reproduce

1. Create new app with grails create-app
2. Create a new service. This should generate a spec with a broken test, if it doesn't add the spec and add a failing test.
3. Run tests with grails test-app
4. Run open test-report

### Environment Information

macOS Ventura
Java 11

### Example Application

_No response_

### Version

5.2.5

Contributor guide

Open the contributing guide

Research direction

Start with the Grails CLI implementation of the `open test-report` command and compare its target with the report path produced by `grails test-app`. Reproduce using the listed steps and verify that the command opens `build/reports/tests/test/index.html` on Grails 5.2.5.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.