Creating task of type Test results in NPE

Chuck's Avatar

Chuck

18 Feb, 2015 08:26 PM

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')
}

  1. Support Staff 1 Posted by Yennick Trevels on 18 Feb, 2015 08:52 PM

    Yennick Trevels's Avatar

    Hi!
    You might want to specify the GradleFx package of the Test task, like this:

    task runUnitTests (type: org.gradlefx.tasks.Test) { 
      println('running Unit Tests') 
    }
    
  2. 2 Posted by Chuck on 19 Feb, 2015 03:27 PM

    Chuck's Avatar

    Hi Yennick,

    That did it!

    Thanks,
    Chuck

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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