MonoGame/MonoGame

Automated Audio Testing

Open

#1561 aperta il 17 mar 2013

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)C# (3071 fork)batch import
AudioHelp WantedMaintenanceTestingenhancementhelp wantedscope: audioscope: testsstatus: needs-design

Metriche repository

Star
 (13.886 star)
Metriche merge PR
 (Merge medio 25g 3h) (22 PR mergiate in 30 g)

Descrizione

We need to design and implement a method for automating testing of the sound effect and music system in MonoGame. This system will work under the existing testing framework and make it simple to write individual audio tests.

We need a system that works similar to how the graphics testing currently works. We need it to actually play audio and we need to test the results against a known good output. We cannot and should not use mocking which only test the API and not the actual results... providing limited benefits.

This GDC 2012 presentation outlines the basic approach we should take:

Automated Audio Testing

Things we would need to develop:

  • NUnit TestFixture for running SoundEffect and MediaPlayer tests.
  • A method for recording the audio output from the TestFixture.
  • A diff method which can compare two recordings and spot significant differences.

In particular recording the output on phone/gaming devices could be difficult as compared to desktop platforms. We will have to take that issue one step at a time.

Guida contributor