Skip to content

test: Prefer testing on lib and platform scope#1592

Merged
Gustl22 merged 98 commits into
mainfrom
gustl22/shorter-test-runs
Aug 19, 2023
Merged

test: Prefer testing on lib and platform scope#1592
Gustl22 merged 98 commits into
mainfrom
gustl22/shorter-test-runs

Conversation

@Gustl22

@Gustl22 Gustl22 commented Aug 1, 2023

Copy link
Copy Markdown
Collaborator

Description

Transition from executing the tests in the lib environment rather than in the example app in order to save testing time.

  • Differentiate variable bit rate (VBR) in tests
  • Move durationRangeMatcher to test_utils
  • Comment some sources, which are considered redundant
  • platform tests: ReleaseMode.release, release, volume, balance, playbackRate, getDuration, getPosition, setSource, logging, error
  • audioplayers: Refactor complete check in _completePrepared
  • audioplayers_darwin: set url to nil on release

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, refactor:,
    docs:, chore:, test:, ci: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation and added dartdoc comments with ///, where necessary.
  • I have updated/added relevant examples in example.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

@Gustl22 Gustl22 marked this pull request as draft August 16, 2023 14:07
…t-runs

# Conflicts:
#	packages/audioplayers/example/integration_test/app/app_source_test_data.dart
#	packages/audioplayers/example/integration_test/lib/lib_source_test_data.dart
#	packages/audioplayers/example/integration_test/lib_test.dart
#	packages/audioplayers/example/integration_test/platform_test.dart
#	packages/audioplayers/example/integration_test/source_test_data.dart
#	packages/audioplayers_linux/linux/audioplayers_linux_plugin.cc
#	packages/audioplayers_platform_interface/lib/src/audioplayers_platform.dart
#	packages/audioplayers_windows/windows/audioplayers_windows_plugin.cpp
@Gustl22 Gustl22 changed the title test: Prefer testing in lib tests test: Prefer testing on lib and platform scope Aug 18, 2023
@Gustl22 Gustl22 marked this pull request as ready for review August 18, 2023 11:26
@Gustl22 Gustl22 requested review from spydon and removed request for spydon August 18, 2023 11:34
@Gustl22 Gustl22 merged commit 23d0904 into main Aug 19, 2023
@Gustl22 Gustl22 deleted the gustl22/shorter-test-runs branch August 19, 2023 12:28
Gustl22 added a commit that referenced this pull request Sep 26, 2023
# Description

Transition to executing the tests in the lib and platform scope rather than
in the example app in order to save testing time.

- Differentiate variable bit rate (VBR) in tests
- Move `durationRangeMatcher` to test_utils
- Comment some sources, which are considered redundant
- platform tests: ReleaseMode.release, release, volume, balance,
playbackRate, getDuration, getPosition, setSource, logging, error
- audioplayers: Refactor complete check in `_completePrepared`
- audioplayers_darwin: set url to `nil` on release

(cherry picked from commit 23d0904)
Gustl22 added a commit that referenced this pull request Nov 14, 2023
# Description

Transition to executing the tests in the lib and platform scope rather than
in the example app in order to save testing time.

- Differentiate variable bit rate (VBR) in tests
- Move `durationRangeMatcher` to test_utils
- Comment some sources, which are considered redundant
- platform tests: ReleaseMode.release, release, volume, balance,
playbackRate, getDuration, getPosition, setSource, logging, error
- audioplayers: Refactor complete check in `_completePrepared`
- audioplayers_darwin: set url to `nil` on release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants