Repository navigation
docs(standards): an I/O test exercises one adapter; its isolation is a choice, not a tier - #46
Merged
systemfsoftware-bot merged 3 commits intoDec 3, 2026
Conversation
…a choice, not a tier SF-IMP-5 and SF-WRK-4 named microVM runs as a test tier of their own. Isolation is chosen per adapter (in-process engine, container or virtual machine). The failure to prevent is a test that drives the subject's own logic through real I/O, so SF-TST-6 now says an adapter suite exercises one adapter and asserts what its real resource stored or returned.
Contributor
|
This pull request is merged. |
…t limit on container and VM tests
systemfsoftware-bot
deleted the
fix/io-tests-target-coupling-not-a-runtime
branch
December 3, 2026 16:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describes head
f0edaec918c.Intent
Test isolation is chosen per adapter, not fixed as a tier.
SF-IMP-5andSF-WRK-4named "microVM" runs as a test tier of their own, which led repositories to require a virtual machine for every integration resource. The failure the rules should prevent is a test that drives the subject's own logic through real I/O.Non-goals: this change does not rule out virtual machines, containers or in-process engines; each stays available where an adapter needs it.
Changes
SF-IMP-5: drops "or microVM" from the list of test kinds.SF-WRK-4: replaces "microVM runs" with "tests that boot a container or virtual machine", so the shared-host limit now applies to any heavy isolation, not one named runtime.SF-IMP-5: "lightest tier" becomes "lightest isolation".SF-TST-6: an adapter suite exercises one adapter against a real resource and asserts what that resource stored or returned. The subject's own logic is tested behind its ports, never driven through real I/O. The resource's isolation is chosen by what the adapter needs. This is a merge into the existing rule's "put I/O tests in adapter suites", not a new ID.Review: one outside review, at
11077b6Rejected
SF-TST-8:CONTRIBUTING.mdsays merge before adding, andSF-TST-6already owns where I/O tests live.Verification
deno task check: "Checked 12 files".Rollback
Revert this PR. Consumers pick it up on their next subtree update.
Second review round (head
f0edaec918c)docs/solutionsrecord of the cause: fixed. Addeddocs/solutions/architecture-patterns/an-io-test-isolates-one-adapter-and-its-runtime-is-a-choice.md, which namesSF-IMP-5andSF-WRK-4as the cause.deno task checkpasses.07c0bbf024e; the only commit since then adds the solution record.