PhilippvK / playforia-minigolf

Client & Server for Minigolf Game known from Playforia/Playray/Appeli. Written in Java.
85 stars 31 forks source link

Implement tests #48

Closed pehala closed 4 years ago

pehala commented 4 years ago

We should have at least few smoke tests for the functionality we can actually test to make sure the jars will at least run (and won't end with exception due to a missing icon for example). We could also test CLI options as those are pretty easy to test.

Since we probably will internally rewrite a lot of stuff, tests could help us ensure we didn't introduced some kind of regression into the system.

PhilippvK commented 4 years ago

Do you think about Unit Tests in JAVA kicked of via Maven or something which involves calling the programs via s bash script or similar?

pehala commented 4 years ago

JUnit5 in Java with Maven, so it is run automatically. Core for doing this will be mocking out all the GUI parts since they cannot be properly run on CI and being pain to test. Since the startup code is separated form the GUI part this should be doable

pehala commented 4 years ago

I will try to create some PoC for the tests soon so we can take a look.

pehala commented 4 years ago

Closed via #50.