dart-lang / dart-lang/test

Factor out stack_trace dependency

Open
#590 11 comments 0 reactions 0 assignees View on GitHub
customer-flutter type-enhancement
Dominant language
Dart
Stars
536
Forks
232
Avg merge
1d 10h
Merged PRs (30d)
10

Description

It would be really helpful if the test package did not have the dependency on the stack_trace package, and either just used VM stacks unmodified or had some hook you could provide to decide how to handle stack traces. Right now, in Flutter, we try to catch all the stack traces but some get caught by the test framework and this then mangles the output of our error handling logic (which is expecting raw stack traces from the VM).

We unfortunately can't rely on the vmTrace property because to use that we'd have to import stack_trace at the framework level, and we would like to minimise our dependencies.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by tracing where the test package imports and processes stack_trace, then review how Flutter captures raw VM stacks. Done means the dependency is removed or a clear hook allows callers to preserve the stack-trace representation they need.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
testing
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.