Creating task of type Test results in NPE
I want to create multiple test tasks to test different classes. However when I create a task of type Test and try to execute it fails with java.lang.NullPointerException (no error message). This is using gradlefx 1.1 and flexunit 4.1.
To test this, I took the flexunit-single-project from the gradlefx samples
https://github.com/GradleFx/GradleFx-Examples
and added the following task:
task runUnitTests (type: Test) {
println('running Unit Tests')
}
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Yennick Trevels on 18 Feb, 2015 08:52 PM
Hi!
You might want to specify the GradleFx package of the Test task, like this:
2 Posted by Chuck on 19 Feb, 2015 03:27 PM
Hi Yennick,
That did it!
Thanks,
Chuck