apache / apache/grails-core

Create Tests for views-markup feature

Open
#14,852 1 comment 0 reactions 0 assignees View on GitHub
relates-to: grails-forge
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

No tests currently exist for this feature.

With 7.0.0-M4 the following error occurs and was missed since test coverage does not exist

```
FAILURE: Build failed with an exception.

* Where:
Build file 'build.gradle' line: 25

* What went wrong:
A problem occurred evaluating root project 'demo'.
> Failed to apply plugin 'org.apache.grails.gradle.grails-markup'.
> Could not create task ':compileGmlViews'.
> Could not create task of type 'MarkupViewCompilerTask'.
> Cannot invoke "org.gradle.api.provider.Property.convention(Object)" because "this.fileExtension" is null
```

Contributor guide

Open the contributing guide

Research direction

Start with build.gradle line 25 and the views-markup feature involved in creating compileGmlViews and MarkupViewCompilerTask. Reproduce the 7.0.0-M4 failure, then add tests that cover this task creation path and verify the reported fileExtension error is caught.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.