Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle: Run of a single test gives an error: Caused by: org.gradle.api.InvalidUserDataException property '$1' as it is a directory

Tags:

gradle

allure

When I try to run a single test in commandline like this:

gradle test --tests *MatchfichePageTest

I get the following error:

A problem was found with the configuration of task ':test'.
> Cannot write to file '/Users/macbookprobartvr/Documents/workspace/aem-site-sporza-tests/build/allure-results' specified for property '$1' as it is a directory.

Full stacktrace: I cannot post because stackoverflow is complaining that there is to much code ...

Does someone know what the problem is?

Gradle version 5.2.1

like image 920
Bart Van Raemdonck Avatar asked Dec 28 '25 11:12

Bart Van Raemdonck


1 Answers

Delete the build/allure-results folder before running the test.

rm -rf /Users/macbookprobartvr/Documents/workspace/aem-site-sporza-tests/build/allure-results

now run the test, it should work now.

like image 102
Bairagi Muduli Avatar answered Jan 03 '26 22:01

Bairagi Muduli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!