karmatic 介绍
karmatic围绕Karma,webpack,Jas mine 和Puppeteer的简化零配置包装器。
Karma,webpack 和 Jas mine 都很棒。它们也都非常强大,并且每个都是高度可配置的。在创建和维护小型模块时,这些配置和依赖项的重复很麻烦。
Karmatic是这些工具的零配置包装器,具有智能 默 认值,配置 自动 检测和大多数配置不 包括 的优化。
最重要的是,Karmatic在单个依赖项中提供了(无头)浏览器测试工具。
安装
npm i -D webpack karmatic
package.json:
{
"scripts": {
"test": "karmatic"
}
}
使用
Usage
$ karmatic <command> [options]
Available Commands
run Run tests once and exit
watch Run tests on any change
debug Open a headful Puppeteer instance for debugging your tests
For more info,run any command with the `--help` flag
$ karmatic run --help
$ karmatic watch --help
Options
-v,--version dis plays current version
--files Minimatch pattern for test files
--headless Run using Chrome Headless (default true)
--coverage Report code coverage of tests (default true)
-h,--help dis plays this message
网站地址 : https://npm.im/karmatic
GitHub: https://github.com/developit/karmatic
网站描述: 轻松 自动 (无头)浏览器测试
karmatic官方网站
官方网站: https://npm.im/karmatic
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。