aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-05-03Update DeviceProvider APIXavier Ducrohet
DeviceConnector can now be queried for device info allowing the test runner to only deploy to compatible devices. Change-Id: I4dbd29ce37e50c6294592405b7602df494f3b566
2013-05-02Automatically add Extras repo to the project repo list.Xavier Ducrohet
Change-Id: I10da9084318a3471cd593f6df9d3e8ed61c1ac6e
2013-05-01Improve testing provider API.Xavier Ducrohet
Change-Id: I2372e12df0b9244891857c7bcfd95e25f733bf89
2013-04-30Fix broken test. Oops.Xavier Ducrohet
Change-Id: Ia3031773438439ff6a118eb7c174b1495083b78a
2013-04-30Add new check tasks based on DeviceProvider/TestServerXavier Ducrohet
Also add a new test project that use a fake implementation of both to make sure they are correctly called. Change-Id: I2a3dcd078a97fbeffedcf730adc59414afeb274d
2013-04-29Unify all temp local repo.Xavier Ducrohet
Also stop putting all dependencies inside the builder artifact, and instead let it depend on other artifacts. Change-Id: I0f3adb2883ac9f34dc82bff420964243487e09a4
2013-04-18Proguard support.Xavier Ducrohet
Change-Id: I236458b4ae883481ff3afa9123f0167dbd270ac1
2013-04-12Add a new sample showing the styleable issue.Xavier Ducrohet
To pass, this requires a fixed aapt that properly NOT put final on styleable IDs when --non-constant-id is used. Change-Id: If406633e67022291605472eea7c3f0d5374f9ce2
2013-04-12Add test for Variant.isSigned().Xavier Ducrohet
Change-Id: Ib7afa512e3bf6444a6b80fd3b0df0e03e62883ff
2013-04-12Fix test manifest when library updates targetSdkVersion thru DSL.Xavier Ducrohet
Change-Id: I44a0400ccbfc9e2358b9f11e4d519f0a22351824
2013-04-04Refactor ApplicationVariant/BuildVariant.Xavier Ducrohet
[Application|ProductionApp|TestApp]Variant -> [Base|Apk|Application|Test|Library]VariantData Also moved under internal.variant package BuildVariant -> [Base|Apk|Application|Test|Library]Variant Also moved under api package. These are interfaces. Implementation in internal.api Change-Id: I6ef0a6433797325836a4ce39f9310641704eeda7
2013-04-04New module for the model.Xavier Ducrohet
This model will be shared between the plugin and the IDE. Change-Id: Ia521ed8d6f47301545679334157ea2ed8629bbb1
2013-03-25Use the right version of build tools.Xavier Ducrohet
Change-Id: I80ebd53f2f46213001633c135c7fd9a5f8502658
2013-03-22Add support for build-tools.Xavier Ducrohet
Change-Id: I6c355e2e2459987224e4fac3fdd8c02d2f4fc905
2013-03-20Sign apk using bouncyCastle.Xavier Ducrohet
Change-Id: If112620dbce3c20fe212765707513afcad402fd1
2013-03-21Merge "Fix package renaming."Xavier Ducrohet
2013-03-19Only package local dependencies in builder.Xavier Ducrohet
the builder library previously packaged all its dependencies in its jar. This started breaking when bouncycastle was added due some issue in the manifest. This solves it but also does something we should have done a while ago. Now only the local dependencies (mostly tools/base) are packaged in builder, while the external dependencies are now declared as dependencies. Since the builder is pushed to MavenCentral the dependencies can be found there. (Sample projects find them in the local repo clone). Change-Id: I789a2950056d0fe49c5f8fbaa11b149cc75a6361
2013-03-15Fix package renaming.Xavier Ducrohet
The previous mechanism used --rename-manifest-package while letting the created manifest have the old package name. While this rename the package entry in the manifest, the resource pool was still associated to the original package name which made thinkgs awkward. The new mechanism uses the new feature of the manifest-merger that allows updating the package name. This means the application is compiled completely using the new package. In order to keep the R class sane though, aapt is called with --custom-package to override only the location of the R class. Change-Id: I0162dab6ca1cdeaf40e0c92d351f0290f01fd216
2013-03-15Fix support for local jars in library projects.Xavier Ducrohet
Change-Id: If19406b935965bde63a761236366137f6fb5d73f
2013-02-26Move to 0.4Xavier Ducrohet
Change-Id: I5c8c599698e489cb83b9ffa6f7a1ef3a9cd27fb6
2013-02-19Make instrument(ation)Test more consistent everywhere.Xavier Ducrohet
Change-Id: I15aeaab2deae50a096e5b0620da49349f56f96e4
2013-02-19Update samples: src/test -> src/instrumentTestXavier Ducrohet
No other changes besides moving the files. Change-Id: Ibbfa5be4af901c939374ef4bc4ec7c36096e3f22
2013-02-19Change tests to be instrumentationTests everywhere.Xavier Ducrohet
This is to not collide with jUnit 'tests'. The idea is to allow regular jUnit tests in the same project, alongside instrumentation (and ui automator) tests. Change-Id: I8db8527f82f16860a83c1d2def996e8074282c5d
2013-02-13Add a test app for assets support.Xavier Ducrohet
Also fix some issues related to input detection of some tasks. Change-Id: I38ac5a151fe1ac84c03fc0cafb8cab31117888a1
2013-02-07SDK support improvements.Xavier Ducrohet
Move figuring out the path to aidl/aapt/dx/llvm-rs-cc from IAndroidTarget to SdkParser (in preparation of the build-tools). Also change android.target to android.compileSdkVersion to make it less confusing with regards to min/targetSdkVersion and also change it to take either an int or a string. Change-Id: I8642cb84f67cf75b49abe905b2a65f4d26668e98
2013-02-01Merge "Fix generation of R class for libraries."Xavier Ducrohet
2013-01-31Fix generation of R class for libraries.Xavier Ducrohet
This adds support for libraries that shares the same package names and libraries that use the app package name. Also added two libraries to libsTest so that lib2b shares the package name with lib2 libapp shares the package name with app. Change-Id: I0c0fdb6fe553857e67227fad8d4f793d414de120
2013-01-30Clean dependencies of published libraries.Xavier Ducrohet
Change-Id: Icb3a75c7e79cbb58c0e529018f318323c649b475
2013-01-29Merge "Add Renderscript support."Xavier Ducrohet
2013-01-28Add Renderscript support.Xavier Ducrohet
Change-Id: I4787cc88fddd23afdb7c8f6ac127318da7b0cff7
2013-01-25For java project to use 1.6.Xavier Ducrohet
Change-Id: Ie266cc78ba634c19b2e67e4e60303ed48040dd8e
2013-01-22Add signing report task.Xavier Ducrohet
This lets users figure out which signing configuration is used for each build variant. it also displays signing information like fingerprints. Also update the SigningConfig API around the store location to make it a File instead of a String. Change-Id: I8292cb9fa7e80a77f2503bdf092c041d8fa315a2
2013-01-15Rename the keystore API/DSL by SigningConfig.Xavier Ducrohet
android { signingConfigs { foo { storeLocation = ... } } buildTypes { debug { signingConfig signingConfigs.foo } } } Change-Id: I63640326660307a592e5ade1ba276ab7795526ff
2013-01-15Default to Java 1.6 when building and allow customization.Xavier Ducrohet
New DSL to customize source/targetCompatibility: android { compileOptions { sourceCompatibility = "1.6" targetCompatibility = "1.6" } } dex options will probably all move in there too in the future. Change-Id: Ibab6fb8c44e7193274720f7340f0f1f409c6e3a4
2013-01-11Merge "Allow for easier relocation of full sourcesets."Xavier Ducrohet
2013-01-11Allow for easier relocation of full sourcesets.Xavier Ducrohet
You can now call android.sourceSets.test.resetToRoot("blah/test") and it will move all of src/test/* to blah/test/* It makes it easier to migrate older project by relocating non src/main outside of src/ Updated the 'migrated' samples to reflect this + other misc fixes. Change-Id: I2b98ada80a9b8d564370e00e3ed63a3d68c60412
2013-01-10Custom Junit test report.Xavier Ducrohet
Duplicated the report classes from Gradle to customize them in order to show the device the test run on, or which flavor and project the test is coming from. This duplicated code is in its own source folder to separate this from AOSP code and retains the original copyright. The "test" tasks which runs all test<Flavor> tasks now also aggregate the results of the test<Flavor> tasks and is designed to run even when those fails by telling them to ignore errors if the "test" task is set to run. Added a new plugin strictly to do aggregate for the subprojects. Plugin is called 'android-reporting' It's meant to be used by the root project. It behaves similarly as the "test" class in the android project, by telling sub tasks to ignore errors. The aggregate tasks will throw an exception if the sub test tasks saw errors in order to ensure that the caller to gradle can manage errors still. Change-Id: I2c1df77cf8073fb74b4145b09aa7609d7999ef6c
2013-01-04Move BuildTypeDsl out of BuildTypeFactory to workaround some groovy bug.Xavier Ducrohet
As an inner class it prevented access to its parent in a closure. See http://jira.codehaus.org/browse/GROOVY-5875 Change-Id: I29e5563173f8c5fec795cbd145ae02c941b0f47b
2013-01-04Add options to the test reporting.Xavier Ducrohet
Support for customized results and report location. Queries the IDevice to construct a name. Copied the flavorlib samples to flavorlibWithFailedTests and removed the failing tests from flavorlib as it's still useful to have as a project with no failing test. Change-Id: Iea3f2ab0828ab93c2ace3ed41b4a5dda7554bbe3
2013-01-03Improve on-device test result reporting.Xavier Ducrohet
Use ddmlib to run and gather the test results. The library provides a test runner that can read the output of the tests running on the device and generate Junit compatible XML result reports. This is then fed to gradle's report generator to make a standard report. Also change the run test task to also do the install/uninstall so that we can run tests on all connected devices in parallel. The existing install/uninstall tasks can probably be removed. Change-Id: I8d3baa848923a399de78dbdc7fc25d5548f56be2
2012-12-21Keystore objects.Scott Barta
Replaces keystore attributes on build types and flavors with a SigningKeystore object that can be accessed by reference from those types. Eliminates the debugSigning attribute in favor of a default debug keystore that's automatically configured for all projects. Change-Id: Icbfc66487e26068ae6edff8395ebc29d0d28f46c
2012-12-11Merge "Add support for multiple res folders in all source sets."Xavier Ducrohet
2012-12-11Add support for multiple res folders in all source sets.Xavier Ducrohet
Change-Id: I01fc363072b4407f70863899c80620fb22044b1f
2012-12-11Adds versionNameSuffix to build typeScott Barta
Adds support for a versionNameSuffix attribute to the build type which works like packageNameSuffix -- it is appended to the version name as derived from the manifest and overridden by the flavors. Change-Id: Ib303f30d2253bbd2367664b826d8dc93f5f3731e
2012-12-07Two simple test projects to detect overlay issues.Xavier Ducrohet
Also add support to build them during the plugin integration tests and check the output. Change-Id: I882f47f4c79d1b44c3e95b2df0f044d91508a3eb
2012-11-12Add test project for api in library projects.Xavier Ducrohet
Also tweak the API a bit. Change-Id: I6cb10b4d770f9054f269d600d41a24b7e2fdc2e1
2012-11-12Add test that builds all the test projects.Xavier Ducrohet
Change-Id: I8686052470b71f9f61f83da360a205a2f04d5271
2012-10-22Move testappsXavier Ducrohet
Move them into samples Create folder tests for actual test projects. Change-Id: I9e7c668ec7241d237f8aba8e539344f2f0800642