Skip to content

Upgrading build_test 0.2 to 0.3

Breaking0.2.1 → 0.3.1Breaking1New5Changed1

BreakingUpgrade verdict

1 breaking change.

  • A testing helper called testPhases is gone. Use testBuilder to test builders.
1 item needs code or config changes

Adds build_barback ^0.0.1.

Drops build_runner.

Breaking1
Removes the testPhases utility; tests should use testBuilder instead.
testPhasestestBuilder

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: function checkOutputs( Map<String, dynamic> outputs, BuildResult result, [Map<AssetId, DatedString> actualAssets]): void
  • removed: function equalsAssetGraph(AssetGraph expected, {bool checkValidAsOf}): Matcher
  • removed: function makeAssetNode([String assetIdString, List<AssetId> outputs]): AssetNode
  • removed: function nextResult(List results): Future<BuildResult>
  • removed: function testPhases(PhaseGroup phases, Map<String, String> inputs, {bool deleteFilesByDefault, Map<String, String> outputs, PackageGraph packageGraph, BuildStatus status = …, Matcher exceptionMatcher, InMemoryAssetWriter writer, Level logLevel = …, onLog(LogRecord record)}): Future
  • removed: function wait(int milliseconds): Future
  • removed: method InMemoryAssetReader.lastModified(AssetId id): Future<DateTime>
  • removed: method InMemoryAssetReader.listAssetIds(Iterable<InputSet> inputSets): Stream<AssetId>
  • removed: method InMemoryAssetWriter.delete(AssetId id): Future
  • removed: method StubAssetReader.lastModified(AssetId id): Future<DateTime>
  • removed: method StubAssetReader.listAssetIds(_): Stream<AssetId>
  • removed: method StubAssetWriter.delete(AssetId id): Future
  • removed: variable assetGraphVersionException: final Matcher
  • removed: variable duplicateAssetNodeException: final Matcher
  • changed: class InMemoryAssetReader implements RunnerAssetReader → class InMemoryAssetReader implements AssetReader
  • changed: class InMemoryAssetWriter implements RunnerAssetWriter → class InMemoryAssetWriter implements AssetWriter
  • changed: class StubAssetReader implements RunnerAssetReader → class StubAssetReader implements AssetReader
  • changed: ctor InMemoryAssetReader(this.assets) → ctor InMemoryAssetReader([Map<AssetId, DatedString> sourceAssets])
  • changed: function testBuilder(Builder builder, Map<String, String> inputs, {bool deleteFilesByDefault, Map<String, String> outputs, InMemoryAssetWriter writer, Level logLevel = …, onLog(LogRecord record)}): Future → function testBuilder(Builder builder, Map<String, String> sourceAssets, {Set<String> generateFor, bool isInput(String assetId), String rootPackage, AssetWriter writer, Map<String, dynamic> outputs, void onLog(LogRecord log)}): Future
  • added: method InMemoryAssetReader.cacheAsset(Asset asset): void