Skip to content

Fix serialization testing#2896

Merged
fire-light42 merged 1 commit into
masterfrom
fixserializationtest
Jun 6, 2026
Merged

Fix serialization testing#2896
fire-light42 merged 1 commit into
masterfrom
fixserializationtest

Conversation

@fire-light42
Copy link
Copy Markdown
Collaborator

The only other option I could find was moving this to the library JVM tests and keeping ClassGraph, but we lose out on app data class testing in that case.

@Luna712

@Luna712
Copy link
Copy Markdown
Contributor

Luna712 commented Jun 6, 2026

Just a note this won't work for testing everything anyway, some things like Any in data classes parsed by Json must be changed to JsonElement so the tests will fail for things like that anyway. There is not really any way around it for that as far as I know either. Other than that this looks fine to me though.

@fire-light42
Copy link
Copy Markdown
Collaborator Author

I tested with the MyDramaList JsonElement example and it worked 🥳

If we find a class which is impossible to test we can always add an annotation to bypass the serialization tests.

@Luna712
Copy link
Copy Markdown
Contributor

Luna712 commented Jun 6, 2026

Wow nice that really surprises me...

@fire-light42
Copy link
Copy Markdown
Collaborator Author

I was also surprised, Android development is rarely convenient like that 😄

@fire-light42 fire-light42 merged commit 70053eb into master Jun 6, 2026
2 checks passed
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 this pull request may close these issues.

2 participants