diff options
| author | Amir Rajan <[email protected]> | 2020-02-27 20:14:39 -0600 |
|---|---|---|
| committer | Amir Rajan <[email protected]> | 2020-02-27 20:14:39 -0600 |
| commit | 5d0c0305854633122b3e800dd9058e93c2950eb6 (patch) | |
| tree | 0283825a7055cebd59ad1b3aff1b3dec1f2ac03c /deploy_template/mygame/app | |
| parent | 07468bf3f309c21ea3f7fcf47195ca275177dc7f (diff) | |
| download | dragonruby-game-toolkit-contrib-5d0c0305854633122b3e800dd9058e93c2950eb6.tar.gz dragonruby-game-toolkit-contrib-5d0c0305854633122b3e800dd9058e93c2950eb6.zip | |
open sourced parts of game toolkit.
Diffstat (limited to 'deploy_template/mygame/app')
| -rw-r--r-- | deploy_template/mygame/app/tests.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deploy_template/mygame/app/tests.rb b/deploy_template/mygame/app/tests.rb index 1dc452a..a60c8be 100644 --- a/deploy_template/mygame/app/tests.rb +++ b/deploy_template/mygame/app/tests.rb @@ -2,10 +2,12 @@ # You can put some quick verification tests here, any method # that starts with the `test_` will be run when you save this file. -# here is an example test and game +# Here is an example test and game + +# To run the test: ./dragonruby mygame --eval tests.rb --no-tick class MySuperHappyFunGame - gtk_args + attr_gtk def tick outputs.solids << [100, 100, 300, 300] @@ -21,4 +23,7 @@ def test_universe args, assert puts "test_universe completed successfully" end +puts "running tests" +$gtk.reset 100 +$gtk.log_level = :off $gtk.tests.start |
