Skip to content

Commit

Permalink
add comparison table
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Nov 10, 2023
1 parent 5f870a0 commit 58f00f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions MIGRATION.test-runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [Table of Contents](#table-of-contents)
- [Pre-requisites](#pre-requisites)
- [What is the Storybook Test Runner?](#what-is-the-storybook-test-runner)
- [Storyshots x Test Runner Comparison table](#storyshots-x-test-runner-comparison-table)
- [Migration Steps](#migration-steps)
- [Replacing `@storybook/addon-storyshots` with `@storybook/test-runner`:](#replacing-storybookaddon-storyshots-with-storybooktest-runner)
- [Migrating storyshots features](#migrating-storyshots-features)
Expand Down Expand Up @@ -35,6 +36,26 @@ The [Storybook test-runner](https://storybook.js.org/docs/react/writing-tests/te

Check [this video](https://www.youtube.com/watch?v%253DwEa6W8uUGSA) for a quick look on the test-runner.

## Storyshots x Test Runner Comparison table

| | Storyshots | Test runner |
| -------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Coverage reports |||
| Access parameters in tests |||
| DOM snapshots testing |||
| Visual snapshot testing | ✅ with puppeteer ||
| A11y tests |||
| Extra customization | ✅ via `initStoryshots` | ✅ via `--eject` |
| Run subset of tests | ✅ storyKindRegex + storyNameRegex | ✅ via story tags |
| Skip story via parameter | ✅ via parameters | ✅ via story tags |
| Custom test function |||
| Interaction testing | ❌  ||
| Real Browser |||
| Cross browser testing |||
| Parallel Testing |||
| storyStoreV7 compatibility |||
| React Native support || ✅ via [@storybook/addon-react-native-web](https://storybook.js.org/addons/@storybook/addon-react-native-web) |

## Migration Steps

### Replacing `@storybook/addon-storyshots` with `@storybook/test-runner`:
Expand Down

0 comments on commit 58f00f1

Please sign in to comment.