a1k0n / jsxm

FastTracker 2 .xm module player in Javascript
http://www.a1k0n.net/code/jsxm/
MIT License
485 stars 36 forks source link

Unit test suite. #7

Closed a1k0n closed 8 years ago

a1k0n commented 8 years ago

The player is frankly in a fragile state. There are a bunch of edge cases it needs to handle "correctly" (as in, do the same quirky thing FastTracker 2 does) -- for example, playing a note without anything in the instrument column shouldn't change the channel volume but should retrigger the note.

I want to add some effects and refactor without breaking anything.

Not sure what to use for this; phantomJS? karma? I don't particularly want to emulate/test the DOM parts at all, just make some various assertions on the javascript code with some test patterns/samples/etc set up.

a1k0n commented 8 years ago

I feel better about this now; a bunch of tests exist, more tests will come.