DioxusLabs / DioxusLabs/dioxus

Headless testing and snapshot generation

Open
#1,997 0 comments 2 reactions 0 assignees View on GitHub
ecosystem enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Specific Demand

Internally we use [globals, manual events and generations](https://github.com/DioxusLabs/dioxus/blob/9ae3d14e676c90c73a99f5cfb41ff85c7cbf4bc2/packages/core/tests/lifecycle.rs#L44-L78) to test dioxus components. There should be a library that handles some of that setup for you and has a nicer API.

## Implement Suggestion

Features
- Snapshot generation for components, and apps
- Running in a headless browser or without a renderer

Resources:
- https://github.com/microsoft/playwright
- https://dioxuslabs.com/learn/0.4/cookbook/testing#component-testing

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.