运行job检验单元测试覆盖率
http://ns.jenkins.baidu.com/user/anyixing/my-views/view/Map_ut/job/poi-zhunru/
1在http://ns.jenkins.baidu.com/user/anyixing/my-views/view/Map_ut/网站选择新建一个job
2,拷贝一个已存在的任务
3,修改对应的路径(尤其是svn的路径,url的路径)
|
修改对应的脚本命令:
Execute shell
|
|||
Command |
|
||
See the list of available environment variables | |||
其中命令是:
source ~/.bash_profile
cd /home/map/.subversion
rm -rf auth
cp -r auth_fan auth
cd /home/map/ci/ut/data/phone-normal
sh -x phone-normal_ut.sh r1143 $SVN_REVISION > /home/map/ci/ut/data/phone-normal/log
修改其中的路径,并且注意最后一条命令中的r1143应当是svn中的四位版本号,版本升级的时候需要注意,新模块可以随便填。
4,[map@cp01-testing-mapse10.cp01.baidu.com data]$ pwd
/home/map/ci/ut/data
在这个目录下,新建一个对应项目的目录,从网页配置上对应的目录中copy一份过来。
修改其中的。Sh文件
MOD=phone-normal
以及命令之后对应的版本号 -v的参数:
scm_autobuild.pl -p=app/search/lbs-data/data-service/$MOD -v=1.0.0 -y 2>&1
对应生成的代码路径是在:
/home/map/ut_compile/data/phone-normal/app/search/lbs-data/data-service/phone-normal/cpp/test中
如果需要更新代码,对应的方法是:
在/home/map/ut_compile/data/phone-normal/app/search/lbs-data/data-service/phone-normal/cpp目录下执行svn命令,
svn co https://svn.baidu.com/app/search/lbs-data/trunk/data-service/phone-normal/cpp/test/
可以更新对应的代码
具体查看方法,进入对应的流程,选择html-report,选择cpp,查看函数覆盖率和分支覆盖率
最新文章
- javascript冒泡排序
- ember.js路由无效的解决思路
- 【转】我的技术学习方法 — Anytao
- MySql存储过程的操作
- [转]net中哈希表的使用 Hashtable
- 标准IO
- UI篇---RadioButton(单选按钮)
- Spark 1.60的executor schedule
- 186. Reverse Words in a String II
- BuguMongo是一个MongoDB Java开发框架,集成了DAO、Query、Lucene、GridFS等功能
- Codeforces Beta Round #3 A. Shortest path of the king
- POJ 半平面交 模板题 三枚
- 漂亮的HTML表格 - ebirdfighter的日志 - 网易博客
- WEB前端:浏览器(IE+Chrome+Firefox)常见兼容问题处理--03
- [HTML/CSS]colum-gap属性
- warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
- 五、docker网络技术
- 防火墙/IDS测试工具Ftester
- Windows命令行下如何使用批处理异步打开一个浏览器进程
- MongoDB--集群
热门文章
- CentOS7创建本地源过程
- springboot工程启动时,报错:No bean named 'shiroFilter' available
- ubuntu 配置 tftp 服务器
- 解决ie低版本不认识html5标签
- 1、Java语言概述与开发环境——编译和运行第一个程序HelloWorld.java
- 通过编写串口助手工具学习MFC过程——(五)添加CheckBox复选框
- Slim Span (最小生成树)
- 对Xcode菜单选项的详细探索(来自董铂然的微博http://www.cnblogs.com/dsxniubility/p/4983614.html)
- Nginx 详细介绍
- SQL Server 批量 删除表索引