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.1.0.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

robotframework_sherlock-0.1.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robotframework-sherlock-0.1.0.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

File hashes

Hashes for robotframework-sherlock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4541388d3032d0976202c2e0b46911f7b39d702fb1ba0d8be16c08c1b7895a1b
MD5 fd65e8837577761d556f659621d8c459
BLAKE2b-256 b62627e763a3997fde847b09e3f8e0c68ecb618ab2d0a9fff5e74f36525b0a44

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: robotframework_sherlock-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

File hashes

Hashes for robotframework_sherlock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 720d4cc2f7d6b97706a0582da2daecd446675ed0673ff8c98a8d15c21c1a495f
MD5 cbe915e6fbe61d3303c34b974e51939a
BLAKE2b-256 e1e5e5f5156ec12330fae382bd00f44f4b2193e6aa6e660a4b856b823ad8aedc

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