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

roboelectric and Junit tests not working in latest android studio arctic fox #3773

Closed
yash10019coder opened this issue Sep 9, 2021 · 5 comments · Fixed by #3783
Closed
Assignees
Labels
Z-ibt Temporary label for Ben to keep track of issues he's triaged.

Comments

@yash10019coder
Copy link
Contributor

Describe the bug
As you go to run any specific test by adding configuration a weird error comes saying that the memory is Filled fully
this is the SS of the error
image
image (1)

To Reproduce
Steps to reproduce the behavior:
image
click on it then on edit configuration

After that a window pops up like this click on + symbol at the top left corner and then click on junit
image

then this window appears
image

then click on the blue part and select a app module and search a class to retrace what I did select the app module and then search the class StoryFragmentTest select it and click on apply and Ok then run the test by clicking on the run button or by shortcut Shift + F10 and you're done wait for it then the error appears as the gradle compiles and the app runs
NOTE that in android studio 4.2.1 this successfully runs this error happens only in artic fox

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots or videos to help explain your problem.

Device

  • Device/emulator being used
  • SDK version

Additional context
Add any other context about the problem here.

@darkmat13r
Copy link
Contributor

darkmat13r commented Sep 25, 2021

@yash10019coder
Configuration :

image

Error
image

@darkmat13r
Copy link
Contributor

darkmat13r commented Sep 25, 2021

@yash10019coder @rt4914 I think its a bug in javaagent of the android studio. I was able to run the test cases in Intellij IDEA community IDE with following configuration.

image
Result
image

@rt4914
Copy link
Contributor

rt4914 commented Sep 27, 2021

Thanks @darkmat13r

@BenHenning
Copy link
Sponsor Member

@yash10019coder assigning this to you since you have a PR out to address this.

@BenHenning
Copy link
Sponsor Member

This is an open issue to work on (#3783 is a good place to start--please also look at the comments).

This is actually a rather important issue since it will affect new contributors, so we'd really appreciate help on this one. :)

@yash10019coder yash10019coder self-assigned this Nov 18, 2021
BenHenning pushed a commit that referenced this issue Dec 14, 2021
…d studio artic fox (#3783)

* added changes in all gradle files

* increased heap size

* Revert "added changes in all gradle files"

This reverts commit 5308dd2.

* added the line in gradle.properties

* removed commented code and also made heap size in multiple of 1024

* removed heap dump and other args.
@BenHenning BenHenning added the Z-ibt Temporary label for Ben to keep track of issues he's triaged. label Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-ibt Temporary label for Ben to keep track of issues he's triaged.
4 participants