You're using 0.8 or the *much* more current 0.9 preview 3?
If you're using 0.8, I would recommend using the 0.9 version, it's
stable. That option may have been moved up into the useTestNG() { ...
} closure, I don't recall. Testing underwent some massive rework and
refactor in the 0.9 version.
On Mon, Jun 14, 2010 at 07:19, tinca <[email protected]> wrote:
>
> Hello,
>
> How to do the subject I found this in the archive:
> http://gradle.markmail.org/search/?q=working+dir#query:working%20dir+page:1+mid:fqm2wu5qtlxscls6+state:results
>
> So I tried :
> task testng(type: Test) {
> dependsOn: deployServices
> useTestNG()
> options {
> dir: projectDir
> println dir
> }
> }
>
> This fails on the println line and without it dir is not set:
> Property dir could not be found in the options of the TestNG test framework.
>
> Make sure the correct TestFramework is in use.
> - Call useJUnit(), useTestNG() or useTestFramework(<your own
> TestFramework implementation class>) as first statement in the test { }
> block.
>
> From thread in the archive URL:
> "In 0.8, there's a Test.options.dir property"
> Against my expectations, it seems I do not understand how to set this.
>
> Your help is much appreciated!
> --
> View this message in context:
> http://old.nabble.com/Setting-working-dir-for-TestNG-tp28879494p28879494.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp
Software Engineer
Open Source Advocate
PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email