Profile cover photo
Profile photo
Michael Legart
135 followers
135 followers
About
Michael's interests
View all
Michael's posts

Post has attachment
Photo

Post has attachment
Create dynamic favicons, even with animations

Post has attachment
Java Mission Control / Flight Recorder included in Java 7u40

Geb and Spock with Grails 2.3

To use Spock and Geb with Grails 2.3 you have to remove some dependencies and patch your local Geb installation (for now).

Grails 2.3 now uses Spock as the default test framework and that means you have to remove the dependencies used in Grails 2.2:

dependencies {
    test "org.spockframework:spock-grails-support:0.7-groovy-2.0"
  }
  plugins {
    test(":spock:0.7") {
      exclude "spock-grails-support"
    }
  }

If you have tests extending grails.plugin.spock.IntegrationSpec they must now extend grails.test.spock.IntegrationSpec instead.

To make Geb tests run you have to patch Events.groovy in $HOME/.grails/2.3.0/projects/<projectname>/plugins/geb-0.9.1/scripts with the following change:

with https://github.com/legart/geb/commit/9c71e8200788674089feb0783e9116ea546e7ed1

Remember to run grails clean and after this Geb tests should run with Spock again.

Geb and Spock with Grails 2.3

To use Spock and Geb with Grails 2.3 you have to remove some dependencies and patch your local Geb installation (for now).

Grails 2.3 now uses Spock as the default test framework and that means you have to remove the dependencies used in Grails 2.2:

dependencies {
    test "org.spockframework:spock-grails-support:0.7-groovy-2.0"
  }
  plugins {
    test(":spock:0.7") {
      exclude "spock-grails-support"
    }
  }

If you have tests extending grails.plugin.spock.IntegrationSpec they must now extend grails.test.spock.IntegrationSpec instead.

To make Geb tests run you have to patch Events.groovy in $HOME/.grails/2.3.0/projects/<projectname>/plugins/geb-0.9.1/scripts with the following change:

with https://github.com/legart/geb/commit/9c71e8200788674089feb0783e9116ea546e7ed1

Remember to run grails clean and after this Geb tests should run with Spock again.

Post has attachment

Post has attachment
Et par feriebilleder :)
PhotoPhotoPhotoPhotoPhoto
Hos familien Sjøgren i Javea
20 Photos - View album

Post has attachment
Udsigt fra Montgo
Photo

Post has shared content
Version 0.3 of the #gradle plugin for #androiddev is out.

System requirements
Gradle 1.3+ (tested on 1.3/1.4)
Android Platform Tools 16.0.2+

New Features
Renderscript support.
Support for multi resource folders. See 'multires' sample (PNG crunch is now done incrementally and in parallel.)
Support for multi asset folders.
Support for asset folders in Library Projects.
Support for versionName suffix provided by the BuildType.

Testing
Default sourceset for tests now src/instrumentTest (instrumentTest<Name> for flavors)
Instrumentation tests now:
  - started from "deviceCheck" instead of "check"
  - run on all connected devices in parallel.
  - break the build if any test fails.
  - generate an HTML report for each flavor/project, but also aggregated.
New plugin 'android-reporting' to aggregate android test results across projects. See 'flavorlib' sample.

Improved DSL
Replaced android.target with android.compileSdkVersion to make it less confusing with targetSdkVersion
Signing information now a SigningConfig object reusable across BuildType and ProductFlavor
Ability to relocate a full sourceSet. See 'migrated' sample.
API to manipulate Build Variants.

Fixes
Default Java compile target set to 1.6.
Fix generation of R classes in case libraries share same package name as the app project.

Documentation
New documentation: http://tools.android.com/tech-docs/new-build-system/user-guide
This should make it easier to get started.

Also new samples showing some of the new features are available.

Post has shared content
My favorite testing framework now in a new improved version! Love the improved mocking, especially the Spy funtionality.
Wait while more posts are being loaded