Python静态分析的连续集成工具

bugcatcher-ci的Python项目详细描述


窃听器ci

持续集成工具协助静态代码分析,通过BugCatcher以比光速更快的速度实现

PyPI versionCircleCI

IssuesForksStarsLicense: GPL v2

安装

使用PIP安装

pip install bugcatcher-ci

样本整合

请在this PR中查看更改的文件。设置您的测试非常简单,只需遵循这个示例,并确保您在CircleCI/TravisCI上保存了一个FTL_SID的环境变量。您的FTL_SID可以在您的bug catcher帐户的仪表板上找到https://bugcatcher.fasterthanlight.dev

使用BugCatcher CI的测试运行示例:

% pytest -s
=============================================================== test session starts ===============================================================
platform darwin -- Python 3.8.0, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /sampleproject
plugins: bugcatcher-0.1.6
collected 2 items                                                                                                                                 

tests/test_simple.py 
Testing codebase with BugCatcher API...
Uploading "sampleproject" code to BugCatcher...
Found a `.gitignore` file. Evaluating files...
6 of 20 local files match .gitignore patterns.
14 files ready to upload...
Local item MANIFEST.in
Local item README.md
Local item setup.py
Local item .gitignore
Local item tox.ini
Local item setup.cfg
Local item LICENSE.txt
Local item .travis.yml
Local item tests/test_simple.py
Local item tests/__init__.py
Local item sample/__init__.py
Local item sample/package_data.dat
Local item data/data_file
Local item .circleci/config.yml
Sending new files:
	.circleci/config.yml
	.gitignore
	.travis.yml
	LICENSE.txt
	MANIFEST.in
	README.md
	data/data_file
	sample/__init__.py
	sample/package_data.dat
	setup.cfg
	setup.py
	tests/__init__.py
	tests/test_simple.py
	tox.ini

14 items total changed

Running tests on "sampleproject" using BugCatcher...
BugCatcher results for "sampleproject":

Severity: low ===> tests/test_simple.py (lines 15-15)
	assert_used - Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Severity: low ===> tests/test_simple.py (lines 17-17)
	assert_used - Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Severity: low ===> tests/test_simple.py (lines 21-21)
	assert_used - Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Minimum Severity Level to FAIL tests: "medium"
PASSING! - All results are less than "medium" level severity.
..

=============================================================== 2 passed in 34.72s ================================================================

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何修改打印板?   java Spring批处理JdbcCursorItemReader还是RepositoryItemReader?   java如何在JTable Swing中增加标题列的字体?   java在数组方面遇到问题,导致表达式非法启动   java如何为maven pom的某些部分关闭Eclipse代码格式化程序。xml   java Dropwizard登录代码   java Jersey 2.22:客户端的默认连接超时是多少?   java无法自动连接字段:javax。sql。数据来源   如何从java中的行列表中获取单词列表?   java JDBC批量更新和处理异常?   计算大根:bigdecimal/java   java如何在JavaCC语法中提到trycatch块   javasocket。getInetAddress()不返回任何内容   oracle SQL开发人员错误无法找到Java虚拟机   java我如何计算和显示未来5年每一年的投资价值   java如何关闭浏览器选项卡?   java如何在showMessageDialog中打印双2D数组?   java从站点抓取播放列表URL?   selenium中的java点击css按钮