@aaronxyliu/ftfixer 中文文档教程
Flaky Test Fixer
For Users
这是一个自动修复基于 UI 的不稳定测试的简单工具。 要使用此工具,您的测试必须使用 Selenium 以 JavaScript 编写,以实现端到端测试目的。 您可以在 example 文件夹中找到有关典型测试代码的外观,以及这个工具是如何工作的。
如何安装?
# NPM
$ npm install --save-dev @aaronxyliu/ftfixer
# Yarn
$ yarn add --dev @aaronxyliu/ftfixer
如何更新到最新版本?
# NPM
$ npm update ftfixer
# Yarn
$ yarn up @aaronxyliu/ftfixer
如何使用?
# NPM
$ npx ftfixer --help # User manual
$ npx ftfixer ui # Open UI panel on local server
# Yarn
$ yarn ftfixer --help
$ yarn ftfixer ui
For Developers
如何部署?
$ npm install
如何缩小JS文件?
$ npx minify lib/mutationObserver.js > lib/mutationObserver.min.js
如何发布到 NPM?
$ npm run git-push
$ npm run deploy
如何测试?
$ node bin/ftfixer.js --help
$ npx nodemon bin/ftfixer.js ui
如何联系作者?
请发邮件至xliu234@buffalo.edu
所有突变记录将保存在mutations.log
文件中,该文件位于lib/GUI/public
目录.
Flaky Test Fixer
For Users
This is a simple tool to automatically fix UI-based flaky test. To use this tool, your test must be written in JavaScript using Selenium for end-to-end testing purpose. You can find in example folder about how a typical test code looks like, and how this tool actually work.
how to install?
# NPM
$ npm install --save-dev @aaronxyliu/ftfixer
# Yarn
$ yarn add --dev @aaronxyliu/ftfixer
how to update to newest version?
# NPM
$ npm update ftfixer
# Yarn
$ yarn up @aaronxyliu/ftfixer
how to use?
# NPM
$ npx ftfixer --help # User manual
$ npx ftfixer ui # Open UI panel on local server
# Yarn
$ yarn ftfixer --help
$ yarn ftfixer ui
For Developers
How to deploy?
$ npm install
How to minify JS file?
$ npx minify lib/mutationObserver.js > lib/mutationObserver.min.js
How to publish to NPM?
$ npm run git-push
$ npm run deploy
How to test?
$ node bin/ftfixer.js --help
$ npx nodemon bin/ftfixer.js ui
How to contact the author?
Please email to xliu234@buffalo.edu
All the mutation record will be saved in mutations.log
file, located in lib/GUI/public
directory.