https://kotlinlang.org logo
Title
m

Marc Fearby

05/07/2023, 8:41 AM
Is there a way to run tests with
androidx.compose.ui.test
visible (so that I can see them)? I’m having trouble with something and it would help to be able to see the UI as the test is trying to execute.
a

Alexander Maryanovsky

05/08/2023, 1:34 PM
We don’t have a public API for that at the moment, but you can grab the source of our internal test API from androidx.compose.ui.window.TestUtils and use that.
It’s a very bare-bones API though - it doesn’t have the event dispatching or node-finding APIs.
m

Marc Fearby

05/11/2023, 11:52 AM
Thank you very much. I’ll check that out 👍
Where can I get the source for this? Is it publicly accessible or only for internal JetBrains use? I can’t seem to find it via Google anywhere.
a

Alexander Maryanovsky

05/20/2023, 11:32 AM
Turns out I was wrong and, as I think you found, we do have an experimental testing API.