-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved AssetTest and Assertions into an android testutils package #586
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
81fe3be
Moved AssetTest and Aseertions into an android testutils package
mrigankmg a871c36
Changed visibility to protected
mrigankmg 1f984b7
Merge branch 'main' into android-testutils
mrigankmg 9130e97
Fixed failing tests
mrigankmg 1ac2534
Changed package export
mrigankmg fa24b00
Merge branch 'main' into android-testutils
mrigankmg ad27794
Fixed lint errors
mrigankmg 2baf75c
Merge branch 'main' into android-testutils
mrigankmg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this wrap necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I need it for the specific maven coordinates?