Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Releases: dart-archive/angular_test

1.0.0-beta+3

Choose a tag to compare

@matanlurey matanlurey released this 16 Jun 22:23

1.0.0-beta+3

Breaking Changes & Deprecations

  • Throws in bootstrapping if the root component does not use default change
    detection. AngularDart does not support OnPush or other change detection
    strategies on the root component.

  • Pub serve now defaults to a random unused port (instead of 8080) and
    --port is deprecated. Going forward the supported way to supply this
    argument is via --serve-arg:

$ pub run angular_test --serve-arg=port=1234
  • Option --run-test-flag (-t) is now deprecated, and no longer has a
    default value of aot. Tags are still highly encouraged in order to have
    faster compilation times! Use --test-arg instead:
$ pub run angular_test --test-arg=--tags=aot
  • Option --platform (-p) is now Deprecated, and no longer has a default
    value of content-shell, which was not always installed on host machines.
    Instead use --test-arg:
$ pub run angular_test --test-arg=--platform=content-shell
  • Option --name (-n) and --simple-name (-N) are also deprecated. Use
    --test-arg=--name= and --test-arg=--simple-name= instead.

Features

  • Added --serve-arg and --test-arg, which both support multiple arguments
    in order to have better long-term support for proxying to both pub serve
    and pub run test without frequent changes to this package. For example to
    use the [DartDevCompiler (dartdevc)]:
$ pub run angular_test --serve-arg=web-compiler=dartdevc

Fixes

  • Fixes a bug where the root was not removed from the DOM after disposed.

  • Added a missing dependency on package:func.

1.0.0-beta+2

Choose a tag to compare

@matanlurey matanlurey released this 04 Apr 16:43

1.0.0-beta+2

  • Add support for setting a custom PageLoader factory:
testBed = testBed.setPageLoader(
  (element) => new CustomPageLoader(...),
);
  • Add support for query and queryAll to NgTestFixture. This works similar
    to the update command, but is called back with either a single or multiple
    child component instances to interact with or run expectations against:
// Assert we have 3 instances of <child>.
await fixture.queryAll(
  (el) => el.componentInstance is ChildComponent,
  (children) {
    expect(children, hasLength(3));
  },
);

1.0.0-beta+1

Choose a tag to compare

@matanlurey matanlurey released this 30 Mar 21:35

1.0.0-beta+1

  • Properly fix support for windows by using pub.bat.

1.0.0-beta

Choose a tag to compare

@matanlurey matanlurey released this 29 Mar 18:22

1.0.0-beta

  • Prepare to support angular2: 3.0.0-beta.
  • Replace all uses of generic comment with proper syntax.
  • Fixed a bug where activeTest was never set (and therefore disposed).
  • Fixed a bug where pub, not pub.bat, is run in windows.

1.0.0-alpha+6

1.0.0-alpha+6 Pre-release
Pre-release

Choose a tag to compare

@matanlurey matanlurey released this 17 Mar 05:03

1.0.0-alpha+6

  • Address breaking changes in angular2: 3.0.0-alpha+1.

1.0.0-alpha+5

1.0.0-alpha+5 Pre-release
Pre-release

Choose a tag to compare

@matanlurey matanlurey released this 07 Feb 22:37

1.0.0-alpha+5

  • Update pubspec.yaml to tighten the constraint on AngularDart

1.0.0-alpha+4

1.0.0-alpha+4 Pre-release
Pre-release

Choose a tag to compare

@matanlurey matanlurey released this 03 Feb 04:36

1.0.0-alpha+4

  • Update pubspec.yaml so it properly lists AngularDart 3.0.0-alpha

1.0.0-alpha+3

1.0.0-alpha+3 Pre-release
Pre-release

Choose a tag to compare

@matanlurey matanlurey released this 31 Jan 21:01

1.0.0-alpha+3

  • Fix the executable so pub run angular_test can be used

1.0.0-alpha+2

1.0.0-alpha+2 Pre-release
Pre-release

Choose a tag to compare

@matanlurey matanlurey released this 31 Jan 20:53

1.0.0-alpha+2

  • Add built-in support for package:pageloader:
final fixture = await new NgTestBed<TestComponent>().create();
final pageObject = await fixture.getPageObject/*<ClickCounterPO>*/(
  ClickCounterPO,
);
expect(await pageObject.button.visibleText, 'Click count: 0');
await pageObject.button.click();
expect(await pageObject.button.visibleText, 'Click count: 1');
  • Fix a serious generic type error when NgTestBed is forked
  • Fix a generic type error
  • Added compatibility.dart, a temporary API to some users migrate

Changes to compatibility.dart might not be considered in future semver
updates, and it highly suggested you don't use these APIs for any new code.

1.0.0-alpha+1

1.0.0-alpha+1 Pre-release
Pre-release

Choose a tag to compare

@matanlurey matanlurey released this 11 Jan 18:02

1.0.0-alpha+1

  • Change NgTextFixture.update to have a single optional parameter