stephenhouser / node-red-contrib-flexradio

NodeRed nodes for working with FlexRadio 6xxx series software defined radios
Other
9 stars 3 forks source link

Test cases to make sure the nodes continue to work across changes and firmware #5

Closed stephenhouser closed 3 years ago

stephenhouser commented 3 years ago

I would like to have a test suite that I could run to verify changes I make to the code or the code continues to work with new/old radio firmware so that I don't have to manually create flows and run tests myself.

stephenhouser commented 3 years ago

Notes to self on this one:

stephenhouser commented 3 years ago

Starting to build these ad-hoc. Particularly for the TCP data stream parser and the vita49 packets. No progress on test cases higher up the stack.

stephenhouser commented 3 years ago

There are two test suites built in for the parsers, both in flexradio-js

npm run test
num run test-udp

These run a bunch of sample control commands through the parser and a bunch of captured UDP/VITA-49 datagrams through the datastream parser.

I'm closing this as an issue as test cases should just continue to develop as the code itself develops. Perhaps at some point I'll add some automated testing on commit or something similarly fancy.