Skip to content

Conversation

@its-the-shrimp
Copy link
Contributor

Description

This PR implements a test assembler in tools/website-test enabled by a special flag in a doc file. Its usage is documented in website/README.md. While joining the code blocks, it'll verify the coherence of diff blocks, solving the problem of the tutorial getting "out of touch with reality"

Checklist

  • I have reviewed my own code
  • I have added tests

@github-actions
Copy link

github-actions bot commented Jul 18, 2025

Visit the preview URL for this PR (updated for commit 808679e):

https://yew-rs--pr3879-make-tutorial-testab-3dwlox6t.web.app

(expires Sat, 26 Jul 2025 09:40:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@its-the-shrimp its-the-shrimp force-pushed the make-tutorial-testable branch 2 times, most recently from 3992686 to d4c6dfb Compare July 18, 2025 14:13
@Madoshakalaka
Copy link
Member

Just food for thought: we can also generate one test file for each diff block to ensure each intermediate step compiles too.

@its-the-shrimp its-the-shrimp force-pushed the make-tutorial-testable branch from d4c6dfb to 808679e Compare July 19, 2025 09:36
@its-the-shrimp
Copy link
Contributor Author

Just food for thought: we can also generate one test file for each diff block to ensure each intermediate step compiles too.

If the end result compiles, then it doesn't matter too much whether the individual steps do

@Madoshakalaka Madoshakalaka merged commit 4f3b85e into yewstack:master Jul 19, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants