-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved AssetTest and Assertions into an android testutils package (#586)
* Moved AssetTest and Aseertions into an android testutils package * Changed visibility to protected * Fixed failing tests * Changed package export * Fixed lint errors
- Loading branch information
Showing
13 changed files
with
81 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
load("@rules_kotlin//kotlin:android.bzl", "kt_android_library") | ||
load("@rules_player//kotlin:defs.bzl", "lint") | ||
load("@build_constants//:constants.bzl", "VERSION") | ||
load("//jvm:defs.bzl", "distribution") | ||
load(":deps.bzl", "main_deps") | ||
|
||
kt_android_library( | ||
name = "testutils_android", | ||
srcs = glob(["src/main/java/**/*.kt"]), | ||
custom_package = "com.intuit.playerui.android.testutils", | ||
manifest = ":src/main/AndroidManifest.xml", | ||
resource_files = glob(["src/main/res/**"]), | ||
deps = main_deps, | ||
) | ||
|
||
android_library( | ||
name = "testutils", | ||
custom_package = "com.intuit.playerui.android.testutils", | ||
manifest = ":src/main/AndroidManifest.xml", | ||
resource_files = glob(["src/main/res/**"]), | ||
tags = ["maven_coordinates=com.intuit.playerui.android:testutils:aar:%s" % VERSION], | ||
visibility = ["//visibility:public"], | ||
exports = [":testutils_android"], | ||
deps = main_deps, | ||
) | ||
|
||
distribution( | ||
name = "testutils", | ||
maven_coordinates = "com.intuit.playerui.android:testutils:%s" % VERSION, | ||
) | ||
|
||
lint( | ||
name = "testutils", | ||
srcs = glob(["src/main/**/*.kt"]), | ||
lint_config = "//jvm:lint_config", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Test Utilities | ||
|
||
Along with some generic utilities, this module exposes some base test classes to provide some structure to similar Player integration tests or runtime tests. These are built on JUnit Jupiter and require the concrete tests to be written using the JUnit Jupiter API. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.intuit.playerui.android.testutils"> | ||
<uses-sdk android:minSdkVersion="14" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...sets/android/src/androidTest/java/com/intuit/playerui/android/reference/assets/test/BUILD
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters