noflo-canvas icon indicating copy to clipboard operation
noflo-canvas copied to clipboard

Testing

Open automata opened this issue 11 years ago • 4 comments
trafficstars

Implement tests. It is easy to imagine tests to commands, but should we go deeper and test the rendered canvas?

automata avatar Apr 25 '14 03:04 automata

That would be good for Draw to make sure the commands stick. Could as simple as getImageData 0,0,1,1 Then make sure that's the expected rgb vals.

forresto avatar Apr 25 '14 06:04 forresto

We'll need some mojo to tell Travis to install node-canvas' deps.

forresto avatar Apr 29 '14 08:04 forresto

Looks like that might fix cairo on travis, but now there is a component.io snafu.

See https://github.com/noflo/noflo-canvas/blob/master/spec/MakeColor.coffee for an example component test.

forresto avatar Apr 29 '14 09:04 forresto

https://github.com/noflo/noflo-canvas/commit/652e9f16ca61ebf8b3c07545ad39d07d3deaf1d6 fixed that issue, tests pass now!

forresto avatar Apr 29 '14 15:04 forresto