ganeshlt / smartui-storybook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LambdaTest SmartUI CLI

The @lambdatest/smartui package is LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform.

Installation

Prerequisites

  1. Node version >=14.15.0 required
node --version
  1. Storybook version >=6.4 required. Also, add the following to your .storybook/main.js. You can read more about this here Storybook Feature flags
module.exports = {
  features: {
    buildStoriesJson: true
  }
}

Install package using npm

npm install -g @lambdatest/smartui-storybook

Usage

Step 1: Set SmartUI Project Token in environment variables

For Linux/macOS:

export PROJECT_TOKEN="your-project-token"

For Windows:

set PROJECT_TOKEN="your-project-token"

Step 2: Create config file

smartui config create .smartui.json

Step 3: Execute tests

Run the following command to run visual regression tests on your Storybook components.

smartui storybook http://localhost:6006 --config .smartui.json

You can also provide path to the storybook-static directory instead of the local Storybook URL. Use --help for more information on usage.

About LambdaTest

LambdaTest is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your selenium automation testing to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.

License

Licensed under the MIT license.

About


Languages

Language:JavaScript 100.0%