Robot Framework code analysis tool
Project description
Sherlock
The tool for analyzing Robot Framework code in terms of not used code, code complexity or performance issues.
Note
The tool is in the Alpha state, which means it may be unstable and should be used at your own risk. Some features may be broken and there are still many things to be developed. If you find anything unexpected, or you have ideas for improvements not listed in GitHub issues, please open an new issue.
Installation
Currently, you need to install Sherlock from the source code. In order to do so, first clone the repository, and
run following command inside robotframework-sherlock
directory:
pip install .
Install or update directly from sources
pip install -U git+https://github.com/bhirsz/robotframework-sherlock.git
Add -e
flag after installation if you want Sherlock to reload installed version after each code update (performed via git pull
).
Usage
Sherlock can prepare analysis based on your source code alone. However, it's currently highly recommended to also include output of test execution.
Run Sherlock with:
sherlock --output <path to output.xml file> <path to source code repository>
To analyze external library/resource use --resource
option:
sherlock --output output.xml --resource SeleniumLibrary src/
sherlock --output output.xml --resource external_repository_used_in_tests/ src/
Reports
Sherlock by default prints the output. You can configure what reports are produced by sherlock using --report
option:
sherlock --report print
sherlock --report html
--report
accepts comma separated list of reports:
sherlock --report print,html,json
BuiltIn library
To show analysis of BuiltIn libraries use --include-builtin
flag:
sherlock --include-builtin src/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file robotframework-sherlock-0.2.0.tar.gz
.
File metadata
- Download URL: robotframework-sherlock-0.2.0.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 351eb437e5d1064bd37e80564ae056fde4fb0c64c9631df07b3764d188fb1fc3 |
|
MD5 | e112bdb2c67784899b7c30d298b292b6 |
|
BLAKE2b-256 | b73cc816698fe0a575a94c494d742f6c4601d83ffbfd06c4b91008aa6b7e801f |
Provenance
File details
Details for the file robotframework_sherlock-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: robotframework_sherlock-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8314b6259beb18bd564ff8d62bdc99770b72747770e3c4bb1601e1b6fd68abb2 |
|
MD5 | 995c789458eea9d81542338d47415390 |
|
BLAKE2b-256 | 49aa338387d50697264eb85913c2c826fe0253d16373d55959db88de875bd1eb |