Comments (5)
一般来说,测试分为两部分:1. 测试框架 2. 测试工具
totorojs 是一个单纯的分布式自动化测试工具,你可以使用任意测试框架来编写测试(totorojs 对你选用 什么测试框架没有任何约束),并且将这些测试发送到目标机器上指定特定的浏览器进行测试
karma 则对测试框架有一定的约束,如果你看过 karma 的官方文档,就会知道如果要用 karma 进行测试,必须要遵循 karma 的一些约定来些测试代码,karma 也是一个测试工具,但不是分布式的,而是单机模式,自动调用你电脑上安装的浏览器来进行测试
所以两者各有侧重,你可以根据自己的需要选择使用什么工具来测试,如果你的代码要兼容所有的主流浏览器,那么 totorojs 刚好能胜任这个工作,如果你的测试代码可以无成本遵循 karma 的编写规范,同时又只兼容你电脑上有的浏览器,那么 karma 就更轻巧
from totoro.
3x, 还有几个问题请教:
totoro
本地如何debug? 能否类似karma
那样可以用chrome dev tool 断点?browsers
在win8上无法打开chrome了。
from totoro.
- 本地 debug 的话,你用浏览器直接打开你的测试页面就可以了啊,爱怎么调试怎么调试
- browsers 打开浏览器的原理参考了 karma 的,所以要打不开就都打不开,主要这个功能有很强的平台限制性(当然,后面如果 karma 针对这个功能升级了也不一定,有段时间没关注 karma 了,呃)
from totoro.
第2个问题, 参见: totorojs/browsers#48
本机karma是可以打开的, 怀疑是browsers的路径哪里出错
from totoro.
恐怕karma不仅仅是单机模式吧?官网
A browser can be captured either
- manually, by visiting the URL where the Karma server is listening (typically http://localhost:9876/),
- or automatically by letting Karma know which browsers to start when Karma is run (see browsers).
from totoro.
Related Issues (20)
- REAME中的npm install totoro应该加上-g
- 内部gitlab-ci上安装totoro运行后出错,可能和系统有关 HOT 1
- v1.0.0 totoro list 报[undefined/NaN] HOT 1
- 使用上的疑问 HOT 9
- Can not guess which adapter should be used, please choose one of "jasmine,mocha" or apply your own adapter. HOT 2
- node v0.11.x 发布后,socket.io 相关版本应更换为 v1.x
- 日志里能否增加上时间 HOT 3
- totoro --code 参数值的一致性 HOT 5
- Error 'Unknown encoding' HOT 1
- 启动server报错 HOT 4
- Timeout HOT 5
- TypeError: Cannot read property 'forEach' of undefined
- server成功启动后执行测试报服务器错误 HOT 2
- 对于没有设置 proxy,由 totoro 自动将 proxy 设为 false 时,需要给出提示
- totoro 服务是否可以作为 selenium 服务来用 HOT 1
- http://totorojs.org/ 域名过期 HOT 1
- 阿里巴巴内部还在用totoro来做测试吗? HOT 2
- 请问使用totoro可以生成html格式的测试报告吗? HOT 1
- 请问现在这个项目还有人维护吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from totoro.