Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of unit testing #22

Open
ludelafo opened this issue Feb 14, 2018 · 1 comment
Open

Use of unit testing #22

ludelafo opened this issue Feb 14, 2018 · 1 comment

Comments

@ludelafo
Copy link
Member

We should use unit tests to assure our library is safe.

I see the following tests:

  • Can an audio file be loaded ?
  • Can an audio file be played ?
  • Can an audio file be stopped ?
  • Can an audio file be paused ?
  • Can an audio file be resumed ?
  • Can an audio file be unload ?
  • Can the duration of an audio file be retrieved ?
  • Can the progress of an audio file be retrieved ?
  • Can the remaining playing time be retrieved ?
  • Can the audio file be started at a specific time/duration ?
  • Is the audio file correctly stopped and unloaded at the end of the play ?
  • Is the audio file starts at the beginning of the play on stop ?
  • Is the audio file is correctly stopped before unloading ?
  • Is the audio file still plays when the duration is changed while the audio file was playing ?
  • Is the audio file still doesn't play when the duration is changed while the audio file was not playing ?

Let's discuss what more we could test !

faku99 pushed a commit to faku99/stereo that referenced this issue Mar 4, 2018
faku99 pushed a commit to faku99/stereo that referenced this issue Mar 5, 2018
@faku99
Copy link
Member

faku99 commented Mar 5, 2018

I will periodically update my branch unit_tests with unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants