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

[build] implement createTest for setting up a test suite with Jok integration #40

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

sylvrs
Copy link
Contributor

@sylvrs sylvrs commented Mar 11, 2025

Overview

Hey! I'm a huge fan of this project but found a small issue while developing my personal game. I noticed that jok had no way to properly link jok/SDL for a test suite. I'm aiming to reduce this issue by adding a new function to the build API called createTest.

This function operates like its createDesktopApp counterpart except for the fact that it returns a testing step for the user to properly test any code that may have dependencies on jok's components.

Testing

While I don't have a public project to demo this on, I am using this in my own personal game without any issues thus far. If necessary, feel free to ask for more documentation, examples, etc.

@Jack-Ji
Copy link
Owner

Jack-Ji commented Mar 11, 2025

Hi @sylvrs. I'm glad you found jok useful. I think I get your point, createTest could be potentially useful to verify game logic in headless mode. Let's merge it as an experiment, see what happens.

@Jack-Ji Jack-Ji merged commit ab2c458 into Jack-Ji:main Mar 11, 2025
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