Gathering detailed insights and metrics for yyt
Gathering detailed insights and metrics for yyt
Gathering detailed insights and metrics for yyt
Gathering detailed insights and metrics for yyt
npm install yyt
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
73 Commits
1 Watchers
47 Branches
1 Contributors
Updated on May 22, 2019
Latest Version
0.11.2
Package Id
yyt@0.11.2
Unpacked Size
74.40 kB
Size
25.56 kB
File Count
30
NPM Version
6.12.1
Node Version
12.13.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
9
1
nightwatch
ui 测试框架出来的 开箱即用 一键安装 0 配置,test 框架 yytdocker-yyt
可应用用 gitlab-ci 的定时任务实现 线上定时回归测试nightwatch-helpers
nightwatch --env xxx
写法add-apt-repository ppa:webupd8team/java -y
apt-get install openjdk-8-jre-headless -y
FROM ubuntu:bionic-20181204
# apt 基础组件安装
RUN apt-get update
RUN apt-get -y install \
software-properties-common \
ca-certificates \
sudo \
curl \
yarn \
wget \
vim \
git
# 安装 chrome
RUN sudo apt-get -y install \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatspi2.0-0 \
libgtk-3-0 \
libx11-xcb1 \
xdg-utils \
libxss1 \
libappindicator1 \
libindicator7
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& sudo dpkg -i google-chrome*.deb \
&& apt-get install -f -y
$ npm install yyt -g
在项目根目录配置 yyt.config.js
并且里面配置如下
module.exports = {
default: {
//nightwatch 配置项
}
};
具体配置可参考 nightwatch
官网 这里
module.exports = {
default: {
src_folders: ['nightwatch/test'],
custom_commands_path: ['nightwatch/commands'],
output_folder: false
}
};
除了 nightwatch
的 配置项外, 本组件还额外实现了:
module.exports = {
default: {
__extend: {
// 用于配置生成 html report 的 路径
html_report_path : './reports',
// 用于配置测试浏览器代理端口
proxy: 8887,
// 用于配置测试浏览器是否使用 headless 模式
headless: true,
// pc|mobile|ios|android
platform: 'pc'
}
}
};
# 定义 代理端口
yyt --proxy 8887
# 激活 headless 模式
yyt --headless
# 关掉 headless 模式
yyt --headless false
# 设置 运行 config.dev 配置
yyt --mode dev
在 config 所在目录执行:
# 执行当前项目配置
$ yyt
# 执行 指定路径下的 yyt.config.js 配置
$ yyt path/to/project
# 执行 指定配置文件
$ yyt path/to/config
yyt init
yyt -h
yyt --help
yyt -v
yyt --version
带 env 写法
yyt --env ci-server
如果 在 yyt.config.js
设置了 dev
模式配置
// yyt.config.js
module.exports = {
default: {
// setting
},
dev: {
// setting
}
};
则可以通过 --mode
进行模式切换
yyt --mode dev
cannot read property 'reduce' of null
, 请检查 测试目录中是否夹带其他 东西 如 htmlNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
71 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More