masghar / yet-another-music-application

Automatically exported from code.google.com/p/yet-another-music-application
0 stars 0 forks source link

Write tests #383

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the feature you want implemented.
Need to write unit tests to improve stability.

Describe why you think that this feature is needed.
Because I don't want to be ashamed when looking at my project.

But seriously, unit tests are really important and should be added asap.

Are there any other projects that inspired you?
Virtually all serious projects.

Do you have any suggestions on how we could implement, design or present
this feature in an easy and intuitive way?
I will start by writing tests for the core and then move onto the various GUIs. 
I will use the NUnit framework as it has great integration with both VS and 
Mono.

A lot of code need to be rewritten to allow dependency-injection so the classes 
can be isolated for the tests. This will take some time to do, so the priority 
is to write all tests that are possible now and then move to 
dependency-injection based design of the whole core. The SystemWrapper library 
provides interfaces for all system classes.

This issue is fairly easy to start working on since many methods are easy to 
test and writing tests is very quick and easy. Also, there's tons of tests to 
write and writing tests gives you a great overview of the Stoffi source code.

So if you want to start programming but want to start easy, write tests! :)

Original issue reported on code.google.com by ephracis on 5 Jan 2014 at 11:41