Python静态分析的连续集成工具
bugcatcher-ci的Python项目详细描述
窃听器ci
持续集成工具协助静态代码分析,通过BugCatcher以比光速更快的速度实现
安装
使用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 ================================================================
- 项目
标签: