-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathpub_integration.dart
35 lines (30 loc) · 1.05 KB
/
pub_integration.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:pub_integration/src/test_scenario.dart';
import 'script/public_pages.dart';
import 'script/publishing.dart';
export 'package:_pub_shared/pubapi.dart';
export 'package:pub_integration/src/fake_test_context_provider.dart'
show createHttpClientWithHeaders;
export 'package:pub_integration/src/test_scenario.dart';
/// Runs the integration tests on the [pubHostedUrl].
Future verifyPub({
required String pubHostedUrl,
required TestUser adminUser,
required TestUser invitedUser,
bool expectLiveSite = true,
}) async {
final pubToolScript = PublishingScript(
pubHostedUrl,
expectLiveSite,
adminUser: adminUser,
invitedUser: invitedUser,
);
await pubToolScript.verify();
final publicPagesScript = PublicPagesScript(
pubHostedUrl,
expectLiveSite: expectLiveSite,
);
await publicPagesScript.verify();
}