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

Recent Discussions

24 Jun, 2017 02:18 PM
10 Jun, 2017 04:16 PM
24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM

 

11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM
06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM