Skip to content

Commit c9dce8d

Browse files
committed
Refactor integration tests.
1 parent 01da402 commit c9dce8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1888
-4421
lines changed

.github/workflows/dart.yml

Lines changed: 334 additions & 1580 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_benchmark/mono_pkg.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
sdk:
2-
- pubspec
2+
- dev
33

44
os:
55
- linux
66

77
stages:
88
- analyze_and_format:
9+
- format
910
- analyze: --fatal-infos .

_test/build.throws.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

_test/mono_pkg.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
sdk:
2-
- main
2+
- dev
33

44
os:
55
- linux
6-
- windows
76

87
stages:
98
- analyze_and_format:
9+
- format
1010
- analyze: --fatal-infos .
11-
os: linux
1211
- unit_test:
1312
- command: dart run build_runner test -- -p chrome --test-randomize-ordering-seed=random
13+
os:
14+
- linux
15+
- windows
1416
# TODO(https://github.com/dart-lang/build/issues/3423): restore this on windows
1517
- command: dart run build_runner test -- -p vm test/configurable_uri_test.dart --test-randomize-ordering-seed=random
1618
os: linux
@@ -27,8 +29,3 @@ stages:
2729
os: windows
2830
- test: --total-shards 3 --shard-index 2 --test-randomize-ordering-seed=random
2931
os: windows
30-
# This stage is configured to only run for scheduled builds (see mono_repo.yaml)
31-
- e2e_test_cron:
32-
- test:
33-
sdk:
34-
- be/raw/latest

_test/test/build_integration_test.dart

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ library;
77

88
import 'dart:io';
99

10-
import 'package:build_runner/src/internal.dart';
1110
import 'package:path/path.dart' as p;
1211
import 'package:test/test.dart';
1312

@@ -127,25 +126,6 @@ void main() {
127126
expect(dartSource.existsSync(), true);
128127
});
129128

130-
test('Re-snapshots if there is no asset graph', () async {
131-
final assetGraph = assetGraphPathFor(scriptKernelLocation);
132-
await File(assetGraph).delete();
133-
134-
final nextBuild = await runBuild();
135-
expect(
136-
(nextBuild.stdout as String).split('\n'),
137-
containsAllInOrder([
138-
contains('Generating the build script'),
139-
contains('Compiling the build script.'),
140-
contains('Creating the asset graph.'),
141-
contains(
142-
'Building, full build because there is no valid asset graph.',
143-
),
144-
contains(BuildLog.successPattern),
145-
]),
146-
);
147-
});
148-
149129
test('incremental build after resolve missing import', () async {
150130
final dartSource = File(p.join('lib', 'app.dart'));
151131
dartSource.writeAsStringSync(

_test/test/exception_handling_test.dart

Lines changed: 0 additions & 35 deletions
This file was deleted.

_test/test/help_test.dart

Lines changed: 0 additions & 87 deletions
This file was deleted.

build/mono_pkg.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
sdk:
2-
- pubspec
32
- dev
43

4+
os:
5+
- linux
6+
57
stages:
68
- analyze_and_format:
9+
- format
710
- analyze: --fatal-infos .
8-
- format:
9-
sdk:
10-
- dev
1111
- unit_test:
1212
- test: --test-randomize-ordering-seed=random
13-
os:
14-
- linux
15-
- windows
16-
17-
cache:
18-
directories:
19-
- .dart_tool/build

build_config/mono_pkg.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
sdk:
22
- dev
33

4+
os:
5+
- linux
6+
47
stages:
58
- analyze_and_format:
6-
- group:
7-
- format
8-
- analyze: --fatal-infos .
9+
- format
10+
- analyze: --fatal-infos .
911
- unit_test:
1012
- test: --test-randomize-ordering-seed=random
11-
os:
12-
- linux
13-
- windows
14-
15-
cache:
16-
directories:
17-
- .dart_tool/build

build_daemon/mono_pkg.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
sdk:
22
- dev
3-
- pubspec
3+
4+
os:
5+
- linux
46

57
stages:
68
- analyze_and_format:
7-
- group:
8-
- format
9-
- analyze: --fatal-infos .
10-
sdk:
11-
- dev
9+
- format
10+
- analyze: --fatal-infos .
1211
- unit_test:
1312
- test: --test-randomize-ordering-seed=random
1413
os:

0 commit comments

Comments
 (0)