EgonOlsen71 / basicv2

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java
https://egonolsen71.github.io/basicv2/
The Unlicense
84 stars 15 forks source link

Why tests are programs? #16

Closed kdrzazga closed 5 years ago

kdrzazga commented 5 years ago

I believe JUnit or similar should be used.

EgonOlsen71 commented 5 years ago

Two reasons: They aren't really automated tests of the Junit kind, i.e. in a lot of cases, you have to look at the outcome to tell if it's correct or not. You can't Junit-test a compiled game for example. Apart from that, I wanted this project to have no third party libs at all, hence no junit here.

kdrzazga commented 5 years ago

I could ask why you use Java instead of wiriting your own VM? LOL Anyway, to JUnit-test a compiled game logging can be used.

EgonOlsen71 commented 5 years ago

No, it can't. Junit doesn't run an a C64...

Edit: Of course, it could it for the rest. That's true. But as said: The goal was to use no third party stuff at all...for...reasons. I've to use this stuff all day long at work, so I wanted to do something more bare here.