Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This repository contains Allure adaptor for Cucumber framework.
allure-cucumber versions <= 2.13.4 support only cucumber 3 and lower
allure-cucumber versions >= 2.13.5 only support cucumber 4 and are not backwards compatible with cucumber 3 and lower
Add this line to your application's Gemfile:
gem "allure-cucumber"
And then execute:
bundle
Or install it yourself as:
gem install allure-cucumber
Require in "support/env.rb":
require "allure-cucumber"
Common allure configuration is set via AllureCucumber.configure
method. To change it, add the following in features/support/env.rb
file:
require "allure-cucumber"
AllureCucumber.configure do |config|
config.results_directory = "report/allure-results"
config.clean_results_directory = true
config.logging_level = Logger::INFO
config.logger = Logger.new($stdout, Logger::DEBUG)
config.environment = "staging"
config.failure_exception = RSpec::Expectations::ExpectationNotMetError
# these are used for creating links to bugs or test cases where {} is replaced with keys of relevant items
config.link_tms_pattern = "http://www.jira.com/browse/{}"
config.link_issue_pattern = "http://www.jira.com/browse/{}"
# additional metadata
# environment.properties
config.environment_properties = {
custom_attribute: "foo"
}
# categories.json
config.categories = File.new("my_custom_categories.json")
end
By default, allure-cucumber will analyze your cucumber tags looking for Test Management, Issue Management, and Severity tag as well as custom tags for grouping tests in to epics, features and stories in Behavior tab of report. Links to TMS and ISSUE and test severity will be displayed in the report.
By default these prefixes are used:
DEFAULT_TMS_PREFIX = 'TMS:'
DEFAULT_ISSUE_PREFIX = 'ISSUE:'
DEFAULT_SEVERITY_PREFIX = 'SEVERITY:'
DEFAULT_EPIC_PREFIX = 'EPIC:'
DEFAULT_FEATURE_PREFIX = 'FEATURE:'
DEFAULT_STORY_PREFIX = 'STORY:'
Example:
@SEVERITY:trivial @ISSUE:YZZ-100 @TMS:9901 @EPIC:custom-epic
Scenario: Leave First Name Blank
When I register an account without a first name
Then exactly (1) [validation_error] should be visible
You can configure these prefixes as well as tms and issue tracker urls like this:
AllureCucumber.configure do |config|
config.tms_prefix = 'HIPTEST--'
config.issue_prefix = 'JIRA++'
config.severity_prefix = 'URGENCY:'
config.epic_prefix = 'epic:'
config.feature_prefix = 'feature:'
config.story_prefix = 'story:'
end
Example:
@URGENCY:critical @JIRA++YZZ-100 @HIPTEST--9901 @epic:custom-epic
Scenario: Leave First Name Blank
When I register an account without a first name
Then exactly (1) [validation_error] should be visible
Additional special tags exists for setting status detail of test scenarios, allure will pick up following tags: @flaky
, @known
and @muted
Allure report will mark steps and tests as either Failed
or Broken
based on exception class that was raised. By default, RSpec::Expectations::ExpectationNotMetError
exception will mark test as Failed
and all other exceptions will mark test as Broken
.
Custom failure exception class can be configured:
AllureCucumber.configure do |config|
config.failure_exception = MyCustomFailedException
end
Use --format AllureCucumber::CucumberFormatter --out where/you-want-results
while running cucumber or add it to cucumber.yml
. Note that cucumber --out
option overrides results_directory
set via Allure.configure
method.
You can also manually attach screenshots and links to test steps and test cases by interacting with allure lifecycle directly. For more info check out allure-ruby-commons
# file: features/support/env.rb
require "allure-cucumber"
Allure.add_attachment(name: "attachment", source: "Some string", type: Allure::ContentType::TXT, test_case: true)
Allure.add_link("Custom Url", "http://www.github.com")
It's possible to mark methods so those are included as allure steps: Step annotations
FAQs
Unknown package
We found that allure-cucumber 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.