[migration/ilib-js-to-dart] test: rework test runner and add integration test support - #97
Merged
Merged
Conversation
Add unit|integration|all mode selection to execute_unit_test.sh with separate pass/fail reporting per suite, and run example/ widget integration tests under xvfb when no display is available. Convert example_app_api_test.dart from flutter_js interop (ILibJS) to the pure-Dart ILibLoader, updating the expected version to 2.0.0
- Support unit/integration/all mode selection (default: all) - Add --help/-h option for usage information - Include test/integration/ (API-level) and example/integration_test/ (widget-based, requires Linux device) in integration mode - Add xvfb-run support for headless widget test execution - Add test/integration/example_app_api_test.dart ported to v2.0 API - Sync CI workflow with develop (install Linux desktop dependencies)
The script now covers both unit and integration tests, so the "unit" qualifier no longer applies. Update all references in CI workflow, docs, and benchmark files.
Contributor
|
The following 34 test files are missing the standard
|
…ion.dart
Add missing debugPrint('Testing [filename] file.') to 35 test files
and replace the heavier flutter/material.dart import with
flutter/foundation.dart across all test files.
Contributor
Author
I updated the test files where |
seonmiJin
approved these changes
Aug 6, 2026
This reverts commit d77f191.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
The following lists affects Pub Points on pub.dev when the package is published.
dart formatcommand.Summary
Rework the test runner script to support both unit and integration test modes, add an API-level integration test, and update the CI workflow accordingly. This change is based on work originally done on the develop branch, brought over and updated to align with the current migration branch.
Changes
Script rename & rewrite:
execute_unit_test.sh→execute_test.shunit | integration | allmode selection (default:all)--help / -hoption with usage documentationxvfb-runsupport for headless widget test execution whenDISPLAYis unsetNew:
test/integration/example_app_api_test.dartILibLoaderclass="token-number">2.0.class="token-number">0) and CLDR version (class="token-number">48.2)ILibDateFmtfull datetime formatting foren-USlocaleCI:
.github/workflows/tests.ymlubuntu-class="token-number">22.04toubuntu-latestclang,cmake,libgtk-class="token-number">3-dev,liblzma-dev,ninja-build,pkg-config,xvfb)Test Structure
test/ (excluding test/integration/) → Unit tests (datefmt, numfmt, durfmt, etc.)
test/integration/ → API-level integration tests
example/integration_test/ → Widget-based integration tests (requires Linux device)
How to Test