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

fix(test): report errors without throwing #393

Merged
merged 3 commits into from
May 12, 2022

Conversation

felangel
Copy link
Contributor

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel added the bug Something isn't working as expected label May 12, 2022
@felangel felangel self-assigned this May 12, 2022
@felangel felangel requested a review from jorgecoca as a code owner May 12, 2022 14:53
@felangel felangel requested a review from bselwe May 12, 2022 14:54
bselwe
bselwe previously approved these changes May 12, 2022
@@ -379,8 +379,8 @@ Future<int> _flutterTest({
}
},
onError: (Object error, StackTrace stackTrace) {
subscription.cancel();
completer.completeError(error, stackTrace);
stderr('$clearLine$error');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test process throws errors for warnings and it turns out we actually don't want to treat those as errors and instead just propagate them to stderr for the user to see without terminating the process.

wolfenrain
wolfenrain previously approved these changes May 12, 2022
@felangel felangel dismissed stale reviews from wolfenrain and bselwe via e09d600 May 12, 2022 15:13
@felangel felangel merged commit 9c1e583 into main May 12, 2022
@felangel felangel deleted the fix/test-report-errors-without-exiting branch May 12, 2022 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: process completes with exit code 69 when warning occurs during test
3 participants