Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-sherlock-0.2.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

robotframework_sherlock-0.2.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file robotframework-sherlock-0.2.0.tar.gz.

File metadata

File hashes

Hashes for robotframework-sherlock-0.2.0.tar.gz
Algorithm Hash digest
SHA256 351eb437e5d1064bd37e80564ae056fde4fb0c64c9631df07b3764d188fb1fc3
MD5 e112bdb2c67784899b7c30d298b292b6
BLAKE2b-256 b73cc816698fe0a575a94c494d742f6c4601d83ffbfd06c4b91008aa6b7e801f

See more details on using hashes here.

Provenance

File details

Details for the file robotframework_sherlock-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_sherlock-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8314b6259beb18bd564ff8d62bdc99770b72747770e3c4bb1601e1b6fd68abb2
MD5 995c789458eea9d81542338d47415390
BLAKE2b-256 49aa338387d50697264eb85913c2c826fe0253d16373d55959db88de875bd1eb

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page