deftest icon indicating copy to clipboard operation
deftest copied to clipboard

Testing scripts

Open vkmelnik opened this issue 2 years ago • 4 comments

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?

vkmelnik avatar Jul 20 '22 10:07 vkmelnik

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?

britzl avatar Jul 20 '22 13:07 britzl

Is there any game you have you want me to use as an example? Or should I just write it myself?

vkmelnik avatar Jul 20 '22 17:07 vkmelnik

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?

britzl avatar Jul 21 '22 06:07 britzl

I think a “slice” will do.

vkmelnik avatar Jul 21 '22 09:07 vkmelnik