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

Addition/ffi tests #203

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

NoahJCross
Copy link

Description

Added a test generation and execution framework for SplashKit that supports all languages. This allows for automated/manual testing for all SplashKit FFI's.

Key features:

  • Test definitions in JSON
  • Support for sequential and parallel test execution
  • Built in handling for cleanup and resource management
  • Special handling for manual/interactive tests
  • Configurable test groups and individual test cases

Important: If you want to run it with all of the fixes i made to the source and translator you can clone these instead. (The generator uses the source to generate the dll/so/dylib):

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tests were run using both direct and command-line methods:

ruby main.rb --generate path/to/api.json
ruby main.rb -l rust
ruby main.rb -l rust -g animations 
ruby main.rb -l rust -g animations -t animation_count

ruby main.rb --help # <-- For help

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation

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.

1 participant