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

Experiment with a way to test the bindings. #17

Merged
merged 1 commit into from
Feb 18, 2018
Merged

Conversation

nical
Copy link
Contributor

@nical nical commented Feb 17, 2018

The main idea is to write some tests in the rust code using the godot_test macro which generates functions that are only exported if the "gd_test" feature flag is enabled, and have a testing gdnative library call them. A simple godot app loads the library, calls run_tests and exits.

To try it out (on linux):

cd test;
cargo build
cp ../target/debug/libgdnative_test.so ./project/lib
godot --path ./project

@nical nical merged commit 27d16ea into godot-rust:master Feb 18, 2018
@nical nical deleted the test branch February 18, 2018 19:55
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