# Working with code E085

**E085 - Attempt to compile a test as Groovy**

Diffblue Cover writes test cases by default in `src/test/java` and this can be changed with the `--test-output-dir` option. For Diffblue Cover to run successfully, the produced test files must be compiled by the build system as Java. In particular, some Maven plugins like GMavenPlus, could interfere with Diffblue Cover by attempting to compile the tests as Groovy. Please ensure Diffblue Cover tests are not included in the plugin configuration. An example of a suitable configuration of the GMavenPlus plugin in the POM file of the project is as follows:

```
                <configuration>
                    <testSources>
                        <testSource>
                            <directory>${project.basedir}/src/test/java</directory>
                            <excludes>
                                <exclude>**/*.java</exclude>
                            </excludes>
                            <includes>
                                <include>**/*.groovy</include>
                            </includes>
                        </testSource>
                    </testSources>
                </configuration>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/features/output-codes/working-with-output-codes/working-with-code-e085.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
