BigMacintosh / Parking

Year 3 Games Project
MIT License
6 stars 0 forks source link

Unity Testing Framwork MVP (Very experimental) #266

Closed ChrisGora closed 4 years ago

ChrisGora commented 4 years ago

It works.

There are two types of tests:

Non unity and unity

The non unity ones can test a single class if it doesn't use any MonoBehaviour crap

The unity ones are more like integration tests. The single test provided starts up a server and then emits events and checks that the correct events with correct data have been triggered.

It's not exactly easy to write tests but I recommend reusing them

RileyEv commented 4 years ago

85 files :cry:

RileyEv commented 4 years ago

Do we need to NSubstitute dll's to be committed?

and System.Threading.Tasks.Extensions?

ChrisGora commented 4 years ago

Yeah.... Otherwise you have to tell everyone to install it manually

RileyEv commented 4 years ago

Put stuff about testing here https://github.com/BigMacintosh/Parking/wiki/Unit-testing