-
Notifications
You must be signed in to change notification settings - Fork 875
test(e2e/dart): add support for Dart e2e testing #1369
Conversation
The code looks good ... but I can't tell that it is actually running or if it succeeded because it doesn't update our The |
It runs nicely :) ... below is an excerpt of the output showing how ts pipes passes but it fails for Dart (because my PR on Dart pipes hasn't landed yet). It updates
|
I'll DRY it up now and push a delta. |
d3e96e3
to
d1d5adc
Compare
All DRY'd up! (And I ensured that it still works over TS and Dart tests.) |
Hi Patrice. So I tried again. I like the refactor. But I don't see any evidence that Dart apps are being tested. I don't actually know what it takes to run Dart or whether it is possible on my machine. I just ran I ran for QuickStart and it only ran for TS (it used to run for both TS and JS); same for forms. I reverted to master and am able to test both TS and JS apps again. I want to merge it. But I'd like some explanation from you first about why I experience something different ... and why I am no longer able to test JS |
To run the Dart tests you need to include the
Without that flag it runs the test like it did before (I didn't want to change the default behavior). Of course, to be able to build the app (and transpiles it JS so that it runs in Chrome), you'll need to have:
|
Oh, I just realized that the sample output I provided showed test being run from both TS and Dart (I fixed that now). Sorry, about that, it must have been from a run before I reverted to the behavior I mentioned above (i.e., run-e2e-tests without arguments still only runs just the tests it did before). |
b1b057d
to
a9e9a40
Compare
Hmm. I wasn't counting on installing Dart on my machine. I run Windows. Is it possible on Windows? FWIW, I'm ok with accepting this PR on your say-so, having established that it does no harm to the TS/JS tests. But it would be a great thing if we routinely ran the tests over TS/JS/Dart as part of our routine practice. So I'd be game to install Dart if it is possible. |
Great!
I believe that there is no impact on the TS/JS tests. (FYI, part of my motivation for the original non-DRY version of this change was to make it really obvious that there was no impact on the TS/JS side.)
I agree. In fact, I think that we should get the docs under Travis CI! Then we could ensure that for every submitted PR all tests pass.
|
Installed with cholatey as instructed and tried It tried to do that Dart test but failed with
at which point it doesn't actually run the Dart test ... or at least there is no output in Console reports a failed test suite. Maybe you can VC with me and we can power through it? I'm eager to accept this. |
I just installed all the dart stuff on my machine (OSX), made several tests on this and works like a charm. Awesome work @chalin |
@Foxandxss No problem with pub? I wonder what I'm doing wrong? |
Different OS so your mileage may vary. It works perfect for me |
This task runs the *same e2e test suites as for TS*, since the example apps should behave the same in TS and Dart. For now, only - quickstart - toh (toh-5) tests are enabled. ALL Dart tests are passing!
a9e9a40
to
f4a47f7
Compare
@Foxandxss: thanks for confirming that it works for you too! Btw, have you updated PATH to include the path to the Dart executables? Assuming that chocolatey has its own
|
The I made a couple of small changes:
Tested it and it works. Thanks! |
Great! We're one step closer to being ready for Travis CI (for all 3 languages)! |
Btw, good catch for the js tests. Thanks. |
Adapted the gulp
run-e2e-tests
task to process--lang=dart
.This task runs the same e2e test suites as for TS, since the example apps should behave the same in TS and Dart. For now, only
tests are enabled. ALL tests are passing!
Contributing to #1521, #1619.