-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Improved unit tests for FFmpegRunner #1364
Conversation
…endent on an installed media player, leave junk on the screen, and leave orphaned temp files.
afd7bcb
to
1642a26
Compare
LibPalaso Tests 36 files - 9 36 suites - 9 4m 34s ⏱️ - 7m 21s For more details on these failures, see this check. Results for commit 1642a26. ± Comparison against base commit de37405. This pull request removes 2353 tests.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @tombogle)
Palaso Tests 3 files 3 suites 15m 41s ⏱️ Results for commit a045012. ♻️ This comment has been updated with latest results. |
2146d15
to
1df0c03
Compare
Also cleaned up some outdated comments and did minor refactoring.
1df0c03
to
cf3c597
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made the tests pass as it's now finding ffmpeg. Left a comment about the TeamCity category comment being inaccurate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @hahn-kev and @tombogle)
…now able to use version of FFmpeg found on the path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r3, 9 of 9 files at r4, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @hahn-kev and @tombogle)
20e6220
to
962ee5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r7, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @hahn-kev and @tombogle)
…quiresAudioInputDevice to make it clear what requirement might not be met when tests fail. In FFmpegRunner, changed methods to use LocateAndRememberFFmpeg instead of LocateFFmpeg. Made the Windows implementation of ISimpleAudioSession attempt to create an irrKlang-based recorder even if there is no audio output device enabled. Improved some of the AudioSession unit tests to not require an audio input device if they are only testing playback. Made AudioRecorderTests fail at the fixture level if an audio input device is not present rather than throwing an obscure exception inside OnHandleCrated.
… (not sure why installing FFmpeg worked once and now can't be found on the path.)
I see now that there is separate logic for locating FFmpeg and FFprobe, and they are not in sync. I'll finish getting them on the same page tomorrow. |
…ation as FFmpeg and also on the system path). Made FFmpegRunner explicitly a static class (technically a breaking change, though all methods were already static). Made FFmpegRunner look for FFmpeg on the path before trying to find a version installed for Audacity (which is unlikely to succeed anyway). Renamed FFmpegRunner.FfmpegMinimumVersion property to MinimumVersion. Significant refactoring in FFmpegRunner and MediaInfo Made private utility functions in FFmpegRunner and MediaInfo into local functions so they would not accidentally be called by other methods in those classes. Added some test cases for MediaInfo.FFprobeFolder setter
4a8106a
to
10d0165
Compare
…t require input/output devices
0eaa2e9
to
2a5390f
Compare
…and running installer directly.
2a5390f
to
c1e1801
Compare
…ent. Excluding unit tests having the category RequiresAudioInputDevice
…o succeed consistently on Appveyor
… setup to succeed consistently on Appveyor" This reverts commit 7ec02ef.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 8 files at r8, 7 of 8 files at r10, 1 of 1 files at r11, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @hahn-kev)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dismissed @hahn-kev from 3 discussions.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @hahn-kev and @tombogle)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dismissed @hahn-kev from 2 discussions.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @tombogle)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dismissed @tombogle from 3 discussions.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @tombogle)
I think Kevin's concerns are addressed, and Tom is trying to get this out. I think Kevin is out for the holidays.
With this change, these tests do not:
This change is