jawaff / KinectController

Control your computer using your body. The KinectController turns the Kinect into a controller that allows configurable actions to be emulated when configurable gestures are triggered by the user.
0 stars 0 forks source link

Test framework that tests the KinectController using emulated Kinect data. #23

Closed jawaff closed 8 years ago

jawaff commented 8 years ago

I'd probably integrate something like junit into the project and pull some of the tests from the EsperTest repository on my account. It'd be sweet if this test framework was able to be executed by the build system in the future. That way every time this thing gets built, we can verify immediately that everything is working.

jawaff commented 8 years ago

I've been putting thought into this a lot and I think I'm just about ready to get something implemented for testing the program.

First off, Testng is what Bryan -- from my workplace -- uses for the program he has been working on. It supports quite a bit of things from assertions, to test creation and execution. I haven't looked too much into it, but it will work for this project because it's supported by Gradle.

jawaff commented 8 years ago

The test framework that I'm thinking about would have two steps to it.

  1. Initial Recording - Common gestures would be defined and a user would demonstrate the gesture to the ACTUAL gesture detection parts of the KinectController. The user data would end up being captured, stored and labeled with a particular gesture definition.
  2. Validation - This step would be for making sure that the previously recorded gestures all still work with the program! We would essentially have a list of these pairs of user data and a gesture definition. With that list we could load up a gesture definition into Esper and feed the recorded user data into Esper. Then we could verify that Esper triggered a Reaction successfully.
jawaff commented 8 years ago

We'll probably need a bunch of specific unit tests for the different types of reactions as well.