如何使用新的测试包调试浏览器测试 [英] How to debug browser tests with the new test package

查看:129
本文介绍了如何使用新的测试包调试浏览器测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

浏览器测试需要从命令行运行,如 pub run test -pdartium 。有没有办法调试这样的测试。

browser tests need to be run from command line like pub run test -pdartium. Is there a way to debug such tests.

推荐答案

pub run test -pdartium --pause-after-load

只有在我点击测试页上的播放按钮后才开始测试。这让我有时间在Dartium中打开Dev Tools并设置断点。我也可以打开天文台,在那里做东西。

starts the test only after I click a "play" button on the test page. This gives me time to open up Dev Tools in Dartium and set breakpoints. I can also open up the Observatory and do stuff there.

这篇关于如何使用新的测试包调试浏览器测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆