Skip to content
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

load test resources #65

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

load test resources #65

wants to merge 9 commits into from

Conversation

thebino
Copy link
Collaborator

@thebino thebino commented Nov 16, 2022

πŸ“‘ What does this PR do?

Load test resources per platform. See this blogpost for implementation details: https://developer.squareup.com/blog/kotlin-multiplatform-shared-test-resources/

βœ… Checklist

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

πŸ§ͺ How can this PR been tested?

🧾 Tasks Remaining: (List of tasks remaining to be implemented)

πŸ–ΌοΈ Screenshots (if applicable):

@thebino thebino marked this pull request as ready for review November 17, 2022 09:27
Copy link
Member

@crocsandcoffee crocsandcoffee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good πŸ‘ seems CI is failing for iOS target, not sure if it's related to changes in this PR or random failure. Often rerunning has fixed previous failures for me.

actual fun readBinaryResource(resourcePath: String): ByteArray {
val path = resourcePath.substringBeforeLast(".")
val fileType = resourcePath.substringAfterLast(".")
println("resourcePath=$resourcePath, path=$path, fileType=$fileType")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it's just test, probably can remove debug print statements in this file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it for debugging since it is not due to a flaky CI. It is currently not working for iOS / native.
I read there is another gradle task needed to copy the assets into the build directory.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the copy task from the article or a different one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think I haven't added it already.

@digitalbuddha
Copy link
Contributor

what is the status of this pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants