微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

karmatic

编程之家收集整理的这个编程导航主要介绍了karmatic编程之家,现在分享给大家,也给大家做个参考。

karmatic 介绍

karmatic围绕Karma,webpack,Jasmine和Puppeteer的简化零配置包装器。

Karma,webpack 和 Jasmine都很棒。它们也都非常强大,并且每个都是高度可配置的。在创建和维护小型模块时,这些配置和依赖项的重复很麻烦。

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 displays 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 displays this message

网站地址:https://npm.im/karmatic

GitHub:https://github.com/developit/karmatic

网站描述:轻松自动(无头)浏览器测试

karmatic

官方网站:https://npm.im/karmatic

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。