deftest
deftest copied to clipboard
Testing scripts
Hi, @britzl.
I plan to add a feature to test scripts and gui_scripts files as a part of my student summer practice. Here is the link to the fork I will work in: https://github.com/vkmelnik/deftest.
Would it be appropriate to include some kind of a small game to the test folder, as an example for integration tests? What do you think about the idea in general?
Hi @vkmelnik, and thank you for showing an interest in deftest! Adding support for testing scripts is not something I have considered, but it is an interesting idea! It also makes sense to add a game or game like example that can be used for testing. Perhaps some kind of basic game script that detects a collision and posts a message to a gui script to update a score or something similar?
Is there any game you have you want me to use as an example? Or should I just write it myself?
I don't have any suggestion at this time. Does it have to be a full game or could it be a "slice" of a game used only for testing purposes?
I think a “slice” will do.