The @lambdatest/smartui package is LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform.
- Node version >=14.15.0 required
node --version
- 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
}
}npm install -g @lambdatest/smartui-storybookFor Linux/macOS:
export PROJECT_TOKEN="your-project-token"
For Windows:
set PROJECT_TOKEN="your-project-token"
smartui config create .smartui.jsonRun the following command to run visual regression tests on your Storybook components.
smartui storybook http://localhost:6006 --config .smartui.jsonYou can also provide path to the storybook-static directory instead of the local Storybook URL. Use --help for more information on usage.
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.
Licensed under the MIT license.