
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
robotframework-reqcov
Advanced tools
Listener for generating requirement coverage reports for tests performed with Robot Framework
Aprenda a usar a biblioteca assistindo ao nosso vídeo no YouTube: // Learn how to use the library by watching our YouTube video:
🔗 Clique na imagem para assistir ao vídeo.
🔗 Click on the image to watch the video.
This listening library generates reports on requirements coverage for automated tests in the Robot Framework. The report includes:
With pip:
pip install robotframework-reqcov
With poetry:
poetry add robotframework-reqcov
1 - Create a CSV file with the requirements, as shown in the example below:
Requirement,Description
REQ-001,Requirement 1
REQ-002,Requirement 2
REQ-003,Requirement 3
REQ-004,Requirement 4
REQ-005,Requirement 5
2 - Add tags to the tests to track the requirements
The id
of each requirement reported in the csv file should be used as a TAG in the related tests.
*** Settings ***
Test Tags REQ-001
*** Test Cases ***
Scenario: Test Req 1
Pass Execution Hello REQ-001
*** Test Cases ***
Scenario: Test Req 2
[Tags] REQ-002
Pass Execution Hello REQ-002
3 - Run the tests and generate the coverage report
3.1 - Without minimum coverage
robot -d reports --listener RobotRequirementsCovarege:requirements.csv .
3.2 - With minimum coverage
robot -d reports --listener RobotRequirementsCovarege:requirements.csv:60 .
By default, the report file coverage_report.html
will be added in the same directory where the Robot Framework files will be added.
Esta biblioteca ouvinte, gera relatórios sobre cobertura de requisitos para testes automatizados no Robot Framework. O relatório inclui:
Com pip:
pip install robotframework-reqcov
Com poetry:
poetry add robotframework-reqcov
1 - Crie um arquivo CSV com os requisitos, conforme o exemplo abaixo:
Requirement,Description
REQ-001,Requirement 1
REQ-002,Requirement 2
REQ-003,Requirement 3
REQ-004,Requirement 4
REQ-005,Requirement 5
2 - Adicionar tags nos testes para rastrear os requisitos
O id
de cada requisito informado no arquivo csv, deverá ser utilizado como TAG nos testes relacionados.
*** Settings ***
Test Tags REQ-001
*** Test Cases ***
Scenario: Test Req 1
Pass Execution Hello REQ-001
*** Test Cases ***
Scenario: Test Req 2
[Tags] REQ-002
Pass Execution Hello REQ-002
3 - Executar os testes e gerar o relatório de cobertura
3.1 - Sem cobertura mínima
robot -d reports --listener RobotRequirementsCovarege:requirements.csv .
3.2 - Com cobertura mínima
robot -d reports --listener RobotRequirementsCovarege:requirements.csv:60 .
Por padrão, o arquivo de report coverage_report.html
será adicionado no mesmo diretório onde os arquivos do Robot Framework serão adicionados.
FAQs
Listener for generating requirement coverage reports for tests performed with Robot Framework
We found that robotframework-reqcov demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.