On 28/07/2011, at 5:20 AM, jean-philippe robichaud wrote: > That was my next thing to try :) > > BTW, would you happen to know if it is possible to set custom shell > environment variables for the unit tests? My unit test requires the usage of > a third party library that uses shell variables to find some shared > libraries. I can't really set them before running the build because > different unit tests will require different values for the same shell > variable. > > does the "test" section allows to set shell variables?
Yes, you can use the 'environment' methods or property. Have a look at the documentation for the Test task type: http://gradle.org/current/docs/dsl/org.gradle.api.tasks.testing.Test.html -- Adam Murdoch Gradle Co-founder http://www.gradle.org VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com
