docs(scaffold,tests_create): document the two-pattern test split (hero_rpc#115) #284
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!284
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-115-tests-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
hero_service_scaffold.mdto document the--no-testsflag, addtests/to the post-scaffold file-tree block, and add a new## End-to-end tests — out of the box (hero_rpc#115)section parallel to the existing UI scaffolds block.hero_tests_create.mdso it no longer collides with the scaffoldedtests/pattern — adds a "When to use this vs. the workspace-roottests/crate" comparison at the top.Why
hero_rpc#115 / PR #119 lands a new test pattern: workspace-root
tests/crate with per-rootobject#[tokio::test]integration tests spun up in-process viahero_rpc_osis::rpc::bootstrap::run_for_test. That coexists with — does not replace — the canonicalcrates/hero_<svc>_test/pattern documented inhero_tests_create.md.The two patterns answer different questions:
tests/(scaffolded by #115)crates/hero_<svc>_test/(hero_tests_create)cargo test(CI / dev loop)lab service --start --force --build[[test]]+#[tokio::test]run_test_filtered+ error fileslab service --start --force --buildfirstWithout this docs alignment, the two patterns look conflicting. With it, the split is intentional and discoverable from either entry point.
Test plan
hero_service_scaffold.md—--no-testsrow added to flags table;.with_tests()shown in library-API example;tests/block added to the file tree; new "End-to-end tests — out of the box" section parallels the existing UI section + ends with the "When to use vs. crates/hero__test/" subtable.hero_tests_create.md— Purpose paragraph reframed to "self-contained binary for ops / QA integration coverage of a deployed service"; new "When to use this pattern vs. the workspace-root tests/ crate" section at the top with the same comparison table and a forward link tohero_service_scaffold.hero_tests_create→hero_service_scaffoldand back).Follow-up
Companion to hero_rpc PR #119. Merge after #119 lands.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.