https://kotlinlang.org logo
#apollo-kotlin
Title
# apollo-kotlin
s

Sam Pengilly

03/08/2023, 4:09 AM
Does anyone have issues where if they use generated Apollo classes (e.g. Enums from the schema) in unit tests you have to do a project clean between each test run or the tests fail to compile saying that the generated types used in the test don’t exist on the classpath (despite having just previously run without issue)? Trying to determine if it’s a generation issue, or something to do with Gradle or IntelliJ. Seems strange since the production code (plus generated code) hasn’t changed from run to run, only the test code.
b

bod

03/08/2023, 8:29 AM
This reminds me of #4669
s

Sam Pengilly

03/08/2023, 8:30 AM
Thanks I'll take a look. It's the sort of issue where it's hard to even start searching because of the ways it could manifest or be phrased
b

bod

03/08/2023, 8:30 AM
with a workaround that you may try
yeah I can imagine! Plus I remember it was kind of flaky, the issue wasn't happening all the time (if it's indeed the same issue)
s

Sam Pengilly

03/08/2023, 8:32 AM
From an initial read it's sounding exactly like my issue. I'll try the workaround and see
2 Views