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

Sample set up for Robolectric tests with kotlin sources #8

Closed
notsatyarth opened this issue Dec 26, 2019 · 2 comments · Fixed by bazel-contrib/rules_jvm_external#713

Comments

@notsatyarth
Copy link

Hi,
I'm trying to run Robolectric tests written in kotlin. If I follow the instructions provided in the project, I get the following error

ERROR: /path/to/target/BUILD.bazel:40:1: in srcs attribute of android_local_test rule //target:robo_tests: source file '//target:src/test/java/app/.../TestInKotlin.kt' is misplaced here (expected .java, .srcjar or .properties)

Would it be possible to add a sample showcasing the integration with kotlin projects too.

@utzcoz
Copy link
Member

utzcoz commented Oct 1, 2021

I saw @Bencodes added support for kt_android_local_test with PR bazelbuild/rules_kotlin#451 at Jan 20. @Satyarths maybe you can use kt_android_local_test to replace android_local_test directly for your bazel configuration.

@utzcoz
Copy link
Member

utzcoz commented Jul 4, 2022

Added at bazel-contrib/rules_jvm_external#713.

@utzcoz utzcoz closed this as completed Jul 4, 2022
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 a pull request may close this issue.

2 participants