[web] Wire the "--start-paused" flag correctly for web (#49310)
This commit is contained in:
committed by
Jonah Williams
parent
4fd19aa189
commit
a1fa1a3d26
@@ -48,6 +48,31 @@ void main() {
|
||||
ProcessManager: () => FakeProcessManager.any(),
|
||||
Cache: () => FakeCache(),
|
||||
});
|
||||
|
||||
testUsingContext('Pipes start-paused to package:test',
|
||||
() async {
|
||||
final FakePackageTest fakePackageTest = FakePackageTest();
|
||||
|
||||
final TestCommand testCommand = TestCommand(testWrapper: fakePackageTest);
|
||||
final CommandRunner<void> commandRunner =
|
||||
createTestCommandRunner(testCommand);
|
||||
|
||||
await commandRunner.run(const <String>[
|
||||
'test',
|
||||
'--no-pub',
|
||||
'--start-paused',
|
||||
'--',
|
||||
'test/fake_test.dart',
|
||||
]);
|
||||
expect(
|
||||
fakePackageTest.lastArgs,
|
||||
contains('--pause-after-load'),
|
||||
);
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
ProcessManager: () => FakeProcessManager.any(),
|
||||
Cache: () => FakeCache(),
|
||||
});
|
||||
}
|
||||
|
||||
class FakePackageTest implements TestWrapper {
|
||||
|
||||
Reference in New Issue
Block a user