Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: test/transformer/gets_and_upgrades_a_package_with_a_dev_transformer_test.dart

Issue 1556043006: Don't choke on dev transformers from path deps. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/src/pubspec.dart ('K') | « lib/src/pubspec.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/transformer/gets_and_upgrades_a_package_with_a_dev_transformer_test.dart
diff --git a/test/transformer/gets_and_upgrades_a_package_with_a_dev_transformer_test.dart b/test/transformer/gets_and_upgrades_a_package_with_a_dev_transformer_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c47a226ecb2f656f70e4d2644decdc88fd36e21c
--- /dev/null
+++ b/test/transformer/gets_and_upgrades_a_package_with_a_dev_transformer_test.dart
@@ -0,0 +1,32 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS d.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:scheduled_test/scheduled_test.dart';
+
+import '../descriptor.dart' as d;
+import '../test_pub.dart';
+import '../serve/utils.dart';
+
+// Regression test for #1369.
+main() {
+ integration("gets and upgrades a package with a dev transformer", () {
+ servePackages((builder) {
+ builder.serveRealPackage('barback');
+
+ builder.serve('foo', '1.0.0', pubspec: {
+ 'transformers': [
+ {'bar': {r'$include': 'test/**'}}
+ ],
+ 'dev_dependencies': {
+ 'bar': {'path': '../bar'}
+ }
+ });
+ });
+
+ d.appDir({'foo': '1.0.0'}).create();
+
+ // Check for the error message because pub didn't consider this error fatal.
+ pubGet(error: isEmpty, exitCode: 0);
+ });
+}
« lib/src/pubspec.dart ('K') | « lib/src/pubspec.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698