0 Star 0 Fork 0

James_523 / GR_WeiStore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
一、启动项目
1.打开控制台
2.cd 到相应的代码目录下
3.运行 npm install
4.运行 npm start
5.http://localhost:3000

二、执行测试用例
1.打开控制台
2.cd 到相应的代码目录下
3.运行 npm test 或者 使用 mocha 运行测试用例 mocha test/*.test.js(npm install -g mocha)


三、安装karma
1.先安装cnpm提高nodejs安装依赖的速度
    npm install -g cnpm --registry=https://registry.npm.taobao.org
2.全局安装karma
    cnpm install -g karma
3.全局安装单元测试
    cnpm install -g jasmine
4.全局安装karma 和 jasmine 的集成插件
    cnpm install -g karma-jasmine
5.全局安装chrome插件
    cnpm install -g karma-chrome-launcher
6.跑karma用例
    karma start karma.conf.js
7.初始化karma的配置文件
    karma init

四、端对端测试框架
0.需要保证本机安装了jdk环境

1.全局安装protractor
cnpm install -g protractor
cnpm install -g webdriver-manager

在CMD中使用代理 SET HTTP_proxy=http://127.0.0.1:1080
webdriver-manager update
2.创建测试脚本

3.创建配置文件

4.打开webdriver
webdriver-manager start
5.打开app
npm start
6.运行端对端的测试用例
protractor conf.js

安装时间处理模块
npm install date-utils --save(加入到packge.json文件中)
在使用文件中require('date-utils');
使用:var date = new Date(time).toFormat('YYYY-MM-DD');


优惠券领取方式
1.自由领取
2.优惠码领取
3.扫描二维码领取
4.平台指定分发
5.平台全局分发

z
The MIT License (MIT) Copyright (c) 2015 yfdever Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wangyuanlin/GR_WeiStore.git
git@gitee.com:wangyuanlin/GR_WeiStore.git
wangyuanlin
GR_WeiStore
GR_WeiStore
master

搜索帮助