dart-archive / package-bots

Scripts specifying what to run in the package waterfall client.dart.packages.
BSD 3-Clause "New" or "Revised" License
2 stars 6 forks source link

Run package:test in --pub-serve mode instead of running pub build #6

Open jakemac53 opened 8 years ago

jakemac53 commented 8 years ago

See errors here https://chromegw.corp.google.com/i/client.dart.packages/builders/packages-mac-polymer-dart/builds/694/steps/pub%20run%20test/logs/stdio.

Many packages create extra dart files next to the original dart file, and those end up getting ran as separate "tests" when running pub test on the build/test directory. Instead, the bots should run pub serve test ... and then pub run test --pub-serve=8080 ....

whesse commented 8 years ago

Ok, I agree that this is the correct fix to the problems with running 'pub build' and 'pub run test build/test', to change the package bots to use --pub-serve (documentation at https://github.com/dart-lang/test#testing-with-barback).