Uplink036 / StardewCalculator

0 stars 0 forks source link

Testing #3

Closed Uplink036 closed 3 days ago

Uplink036 commented 1 week ago

Is testing important to this project? I genuinely don't know, I kind of want it, but am so new to C# that I don't know what is good. Should we do our own minimal unit test or find a framework? If so, which? Here is a discussion for it. This should be closed and finished before any serious working on the project starts, but isn't an immediate issue.

s02blom commented 6 days ago

I mentioned that Dylan Beattie used something in his project Starship to test. Well I looked it up, he's using NCrunch which is not a testing framework. What it does is continually run your tests during development so that you can get continuous feedback. Starship does not use a testing framework as it is a compiler so Dylan has set up his own testing. I should add that NCrunch only works with Visual Studio and JetBrains Rider.

s02blom commented 6 days ago

Following this guide I got to Create a unit test project where upon saw that there were 3 different test frameworks. At that point I found this article explaining the differences between them. For us I don't think it matters much as we really aren't familiar with any. I felt most drawn to Nunit, because of the language and the ignore("reason"). xUnit sounds more mature

s02blom commented 3 days ago

CI via github once we have picked our testing interface?

Uplink036 commented 3 days ago

The purpose of this issue has been accomplished, closing so more detailed ones can take its place.