Skip to content

Conversation

@hamoid
Copy link
Member

@hamoid hamoid commented Jul 13, 2025

Here my first attempt at adding tests to orx'es.

  • Is it the right approach to use nullgl? If I don't it fails to create an application, but I'm not sure if this is the right solution. Also it's not ideal because with nullgl I couldn't use drawImage or a render target if I recall correctly.
  • I noticed that the orx'es inside orx-jvm use a different folder structure: they do not have mainJvm, demoJvm, testJvm but only main, demo and test. Is this something that needs to be changed eventually?

@edwinRNDR
Copy link
Member

The folder structure is different because it uses the kotlin plugin through kotlin("jvm") instead of kotlin("multiplatform"). I think it is best to keep using the jvm variant and use the module structure that comes with it.

@edwinRNDR
Copy link
Member

You should just test with openrndr-gl3 btw. You can have a look at how that is done in openrndr-gl3 itself.

@hamoid
Copy link
Member Author

hamoid commented Sep 2, 2025

orx-boofcv uses the kotlin-jvm convention. I don't see any cases where packages using that convention have tests. openrndr-gl3 uses the kotlin-multiplatform convention.

I tried copying the test parts of its gradle file to orx-boofcv but it wasn't that happy.

If you could give more tips or make a working example I could work on adding tests to orx'es.

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.

3 participants