New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

allure-hermione

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-hermione

  • 2.0.0-beta.24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

allure-hermione

Allure integration for hermione@^5.x.x.

Installation

Use your favorite node package manager to install required packages:

npm add -D allure-hermione allure-js-commons      

Setup

Add allure-hermione field to plugins in your .hermione.conf.js file:

module.exports = {
  plugins: {
+    "allure-hermione": {
+      resultsDir: "./allure-results"
+    }
  }
}

Using allure commands

The plugin provides custom browser commands which allow to add additional info inside your tests:

import { expect } from "chai"

it("my test", async ({ browser, currentTest }) => {
  await browser.url("https://www.example.org/");
  await browser.$("#btn").click()
  
  const screenshot = await browser.takeScreenshot()
  
  await browser.attach(currentTest.id(), screenshot, "image/png")
  await browser.epic(currentTest.id(), "my_epic")
  await browser.parameter(currentTest.id(), "parameter_name", "parameter_value", {
    hidden: false,
    excluded: false,
  })
  
  expect(browser.url).not.eq("https://www.startpage.com/")
});

Don't forget to pass current test id as first argument to command!

Keywords

FAQs

Package last updated on 16 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc