grails-core icon indicating copy to clipboard operation
grails-core copied to clipboard

open test-report command is opening incorrect path

Open mimkorn opened this issue 2 years ago • 0 comments

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

mimkorn avatar Dec 07 '22 17:12 mimkorn