NS2CDT / NS2Plus

NS2+ mod for Natural Selection 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create testsuite

GhoulofGSG9 opened this issue · comments

Issue by GhoulofGSG9
Wednesday Nov 08, 2017 at 16:45 GMT
Originally opened as Mendasp#66


Due to how many possible configuration ns2plus can be run with and the sheer amount of features we should seriously consider adding a test suite to this project. This would shorten test times for new build significantly while making sure the quality of the project doesn't decrease with ongoing builds.

We could either develop our own unit framework or use an existing one. I have used LuaUnit (https://github.com/bluebird75/luaunit) in the past which offers mostly everything needed. But there is also the test framework that comes with ns2 which could be used as well.

Would be great to hear what other contributors think about this suggestion.

Comment by BeigeAlert
Wednesday Nov 08, 2017 at 16:56 GMT


How would you test for something like the health percentages flickering?

On Nov 8, 2017 10:45 AM, "GhoulofGSG9" notifications@github.com wrote:

Due to how many possible configuration ns2plus can be run with and the
sheer amount of features we should seriously consider adding a test suite
for this project. This would shorten test times for new build significantly
while making sure the quality of the project doesn't decrease with ongoing
builds.

We could either develop our own unit framework or use an existing one. I
have used LuaUnit (https://github.com/bluebird75/luaunit) in the past
which offers mostly everything needed.

Would be great to hear what others think about this suggestion.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
Mendasp#66, or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-j3P55kGsy0I_56-cWqpiQiOOhfTDfks5s0dqvgaJpZM4QWrwx
.

Comment by GhoulofGSG9
Friday Nov 10, 2017 at 16:03 GMT


You can check the state of the GUI Object after performing a set of test operations.

In case there is no way to come up with tests for a feature given feature should at least be capsuled so that any failure of it doesn't effect the rest of the system.