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

Missing Configuration in Testing Documentation #1760

Open
kezc opened this issue Oct 30, 2024 · 1 comment
Open

Missing Configuration in Testing Documentation #1760

kezc opened this issue Oct 30, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kezc
Copy link

kezc commented Oct 30, 2024

hello!
I am using Circuit with KMP for my project and I could not get test running. I read whole https://slackhq.github.io/circuit/testing/ but I was getting error

Method beginSection in android.os.Trace not mocked. See <http://g.co/androidstudio/not-mocked> for details.java.lang.RuntimeException: Method beginSection in android.os.Trace not mocked. See <http://g.co/androidstudio/not-mocked> for details.

I believe circuit uses moluce under the hood, which in the readme has section that the project should include in the top level build.gradle:

android {
   testOptions {
        unitTests.isReturnDefaultValues = true
    }
}

source: https://github.com/cashapp/molecule?tab=readme-ov-file#testing (I had to use isReturnDefaultValues instead of returnDefaultValues)
Could you add it to documentation? I think it would be very helpful

@ZacSweers
Copy link
Collaborator

Want to send a PR?

@ZacSweers ZacSweers added the documentation Improvements or additions to documentation label Oct 30, 2024
@ZacSweers ZacSweers added good first issue Good for newcomers help wanted Extra attention is needed labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants