teslaworksumn / HeadMaster

DMX parsing and I2C output for the master Animatronic Heads controller
MIT License
2 stars 0 forks source link

How to test the software? #48

Closed CrasherCourse closed 11 years ago

CrasherCourse commented 11 years ago

Another self-explanatory title.

I believe we should have a mock show that just runs through all the servo channels.

I think @tylrtrmbl has a signal reading device we could use to check the outputs of our master and the slave chips without using the servos.

Also, is the a way to simulate any part of our master code on a computer?

taylortrimble commented 11 years ago

This definitely is HeadMaster-specific. It depends on what you mean by test: there are a few kinds of tests we could do:

This is a big issue! What spots do you guys all see that we could use these in?

Note: Microcontrollers rely a lot on fixture testing, and just good old-fashioned no-test debugging traditionally. There won't be any nice, cute ways to do these, but it may be worth inventing some.

kevana commented 11 years ago

Testing the DMX library out of band would be ideal, but that my not be possible without a ton of extra effort. It compiles, but I wasn't able to do any real world testing on it to see how it behaves.

taylortrimble commented 11 years ago

I like the idea of a simulated test suite that @CrasherCourse mentioned. @CrasherCourse, can you actually be responsible for implementing that?

I think @aterlumen would be fully qualified to design a pretty nice smoke test too, using my I2C reading device and DMX output device.

kevana commented 11 years ago

Elaborate?

taylortrimble commented 11 years ago

I have a device that can read I2C and a device that can output DMX. You'd have to sit there and watch the test (which is why it's called a smoke test, btw) but you should be able to come up with a good test I think!

taylortrimble commented 11 years ago

Okay, so we have everything needed to test and the master board is done.

... guess it's time to go! Can we do this on Friday? The meeting portion at the front should be less than 10 minutes, so we can go to Keller and come back for pizza.

@aterlumen @mplewis @CrasherCourse

mplewis commented 11 years ago

:cool: :roller_coaster:

CrasherCourse commented 11 years ago

Can we do it? ... Yes we can!