-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added integration test reports creation and commit to repo afte…
…r test execution
- Loading branch information
1 parent
1838c8c
commit 129e3ab
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,12 @@ jobs: | |
- name: Run browser tests | ||
run: flutter drive --driver=test_driver/integration_test.dart --target integration_test/app_test.dart -d web-server --release --browser-name=chrome | ||
|
||
- name: Git Commit Integration Test Reports | ||
if: github.event_name == 'push' | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git add integration_test/reports | ||
git commit -m "chore: added integration test reports" | ||
git push |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import 'package:integration_test/integration_test_driver.dart'; | ||
import 'package:integration_test/integration_test_driver.dart' | ||
as integration_test_driver; | ||
|
||
Future<void> main() => integrationDriver(); | ||
Future<void> main() async { | ||
/// Repports are generated on given path, once all tested passed, | ||
integration_test_driver.testOutputsDirectory = 'integration_test/reports'; | ||
await integration_test_driver.integrationDriver( | ||
timeout: const Duration(minutes: 3), | ||
); | ||
} |