NS2CDT / NS2Plus

NS2+ mod for Natural Selection 2
5 stars 7 forks source link

Create testsuite #3

Open GhoulofGSG9 opened 6 years ago

GhoulofGSG9 commented 6 years ago

Issue by GhoulofGSG9 Wednesday Nov 08, 2017 at 16:45 GMT Originally opened as https://github.com/sclark39/NS2Plus/issues/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.

GhoulofGSG9 commented 6 years ago

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 https://github.com/sclark39/NS2Plus/issues/66, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-j3P55kGsy0I_56-cWqpiQiOOhfTDfks5s0dqvgaJpZM4QWrwx .

GhoulofGSG9 commented 6 years ago

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.