You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I start the test with mylocalserver --port 8080 I get
GET http://localhost:8080/test.dart.browser_test.dart dart.js:67 window.onload
this is my custom html file
<!doctype html><!-- custom_html_test.html --><html><head><title>Custom HTML Test</title><linkrel="x-dart-test" href="test.dart"><!-- it works if I uncomment the following line but then I get the above error message --><!--<script async type="application/dart" src="test.dart"></script>--><scriptsrc="packages/test/dart.js"></script><linkrel="stylesheet" href="packages/mdl/assets/styles/material.min.css"></head><body><divclass="ui-test ui-test-button"><buttonid="button1" class="mdl-button mdl-js-button">Flat</button></div></body></html>
It works fine with
pub run test:test -p dartium test/unit/test.dart
The problem is that with pub run test:test -p dartium test/unit/test.dart the browser pops up, runs the test and closes. This is not enough. In my case there is also a visual test necessary - means I have to see!!!! how my Dart-Script modified the button.
See my SS - I must see how "FLAT" looks like
The text was updated successfully, but these errors were encountered:
If you need to see it you will probably need to change <link rel="x-dart-test" href="test.dart"> to a proper dart script tag, then you can launch the HTML page manually.
I have no idea how this will work out when this way of running tests is deprecated (as announced). For automatic test runs such a manual visual check wouldn't make much sense anyway (maybe using WebDriver, which can be used in combination with this test package).
The test package is designed for automated testing; manual testing is a non-goal. You'll be able to see the results of the tests with #45, but that's not going to be its primary purpose. I suggest you don't use this test framework for writing manual tests.
If I start the test with mylocalserver --port 8080 I get
this is my custom html file
It works fine with
The problem is that with

pub run test:test -p dartium test/unit/test.dart
the browser pops up, runs the test and closes. This is not enough. In my case there is also a visual test necessary - means I have to see!!!! how my Dart-Script modified the button.See my SS - I must see how "FLAT" looks like
The text was updated successfully, but these errors were encountered: