All Projects → oblador → Loki

oblador / Loki

Licence: mit
👁 Visual Regression Testing for Storybook

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Loki

React Cdk
under development - React Component Development Kit with Storybook
Stars: ✭ 583 (-47.43%)
Mutual labels:  storybook
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-97.11%)
Mutual labels:  storybook
Storybook Addon Preview
Storybook Addon Preview can show user selected knobs in various framework code in Storybook
Stars: ✭ 43 (-96.12%)
Mutual labels:  storybook
Nx
Smart, Fast and Extensible Build System
Stars: ✭ 9,737 (+778%)
Mutual labels:  storybook
Next Boilerplate
A well-structured production ready Next.js boilerplate with Typescript, Redux, Jest, Enzyme, Express.js, Sass, Css, EnvConfig, Fetch, Reverse Proxy, Bundle Analyzer and Built-in Project CLI. https://pankod.github.io/next-boilerplate/
Stars: ✭ 936 (-15.6%)
Mutual labels:  storybook
React Atomic Design
🔬 Boilerplate with the methodology Atomic Design using a few cool things.
Stars: ✭ 972 (-12.35%)
Mutual labels:  storybook
Storybook Readme
React Storybook addon to render README files in github style
Stars: ✭ 511 (-53.92%)
Mutual labels:  storybook
Storybook Zeplin
Storybook addon to view Zeplin resources in story panel
Stars: ✭ 53 (-95.22%)
Mutual labels:  storybook
React Redux Saga Starter
Basic, Opinionated starter kit for React+Redux+Redux Saga with support for SCSS CSS Modules, Storybook, JEST testing, and ESLint
Stars: ✭ 12 (-98.92%)
Mutual labels:  storybook
Moveit
🚀 NLW #4 | React+ TypeScript + NextJS + StyledComponents + Firebase + MongoDb +Axios
Stars: ✭ 39 (-96.48%)
Mutual labels:  storybook
Ravepro
RavePro
Stars: ✭ 18 (-98.38%)
Mutual labels:  storybook
Readteractive
Tool for writing and generating interactive books.
Stars: ✭ 23 (-97.93%)
Mutual labels:  storybook
Storybook Addon A11y
REPO/PACKAGE MOVED - Storybook addon to help, improving accessibility within you're react components.
Stars: ✭ 37 (-96.66%)
Mutual labels:  storybook
Storybook Deployer
Deploy your storybook as a static site
Stars: ✭ 670 (-39.59%)
Mutual labels:  storybook
Kohei.dev
🌎 A Production-level Single Page App with Server Side Rendering
Stars: ✭ 50 (-95.49%)
Mutual labels:  storybook
Storybook Addon Material Ui
Addon for storybook wich wrap material-ui components into MuiThemeProvider. 📃 This helps and simplifies development of material-ui based components.
Stars: ✭ 513 (-53.74%)
Mutual labels:  storybook
Vue Play
🍭 A minimalistic framework for demonstrating your Vue components
Stars: ✭ 969 (-12.62%)
Mutual labels:  storybook
Matchbox
🔥 A react UI component library
Stars: ✭ 58 (-94.77%)
Mutual labels:  storybook
Gatsby Starter Typescript Deluxe
A Gatsby starter with TypeScript, Storybook, Styled Components, Framer Motion, Jest, and more.
Stars: ✭ 50 (-95.49%)
Mutual labels:  storybook
Quantum
The default pack of components and layout principles that dictates Catho Frontend applications.
Stars: ✭ 39 (-96.48%)
Mutual labels:  storybook
Loki

Visual Regression Testing for Storybook

GitHub license Tests npm version npm downloads

Loki

Rationale

There are a few visual regression tools for the web, but most either cannot be run headless or use phantomjs which is deprecated and a browser nobody is actually using. They usually also require you to maintain fixtures. With react-native it's now possible to target multiple platforms with a single code base, but there's no single tool to test all to my knowledge.

Loki aims to have easy setup, no to low maintenance cost, reproducible tests independent of which OS they are run on, runnable on CI and support all platforms storybook does.

Supported platforms

  • Chrome in docker (recommended)
  • Chrome in AWS Lambda
  • Local Chrome application
  • iOS simulator
  • Android emulator

Prerequisites

Optional dependencies

  • GraphicsMagick for gm diffing engine, brew install graphicsmagick
  • Docker for the chrome.docker target.
  • Chrome 59+ for the chrome.app target, brew cask install google-chrome-canary.

Installation

yarn add loki --dev
yarn loki init

Workflow

Loki will not start any servers for you, so ensure storybook and any simulator/emulator is up and running before running tests.

  1. Start storybook server yarn storybook
  2. Add first set of reference files yarn loki update
  3. Do some changes to your components
  4. Test against references yarn loki test
  5. Review changes in diff folder
  6. Approve changes and update references yarn loki approve

Documentation

Examples

Development

# Install dependencies
yarn
# Start example storybook
yarn workspace @loki/example-react run storybook
# Run example visual tests
yarn workspace @loki/example-react run test
# Run unit tests
yarn test
# Run cli integration tests
cd test/cli && yarn test

Maintainers


Joel Arvidsson

Author

Tomas Echeverri Valencia

Maintainer

License

MIT License. © Joel Arvidsson 2017-present

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].