2

I wrote a component and want to test it.

How can I write a test from component? Is there any test framwork for angular2dart?

2
  • I added another link with a test example. Commented Nov 14, 2016 at 16:10
  • AngularDart will also be providing pageObjects for testing youtu.be/vAUUOwBJetg?t=7m26s Commented Nov 20, 2016 at 13:39

1 Answer 1

2

You can use the test package with the experimental testing implementation https://github.com/dart-lang/angular2/blob/master/lib/testing_experimental.dart I haven't seen examples and I haven tried it myself yet.

See also https://github.com/matanlurey/angular2_api_examples/tree/master/testing/test

I found a few tests using it in https://github.com/dart-lang/angular2/search?utf8=%E2%9C%93&q=testbed and https://github.com/dart-lang/angular2/tree/master/lib/src/modules/testing/test

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.