-
Notifications
You must be signed in to change notification settings - Fork 9
Testing Strategy 1.0 #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Testing Strategy 1.0 #157
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,41 @@ | ||||||||
| # Testing Strategy | ||||||||
|
|
||||||||
| This document outlines Abtion's testing expectations and requirements across all projects. | ||||||||
|
|
||||||||
| ## General Expectations | ||||||||
|
|
||||||||
| ### Critical Flows | ||||||||
| All critical flows must have end-to-end (e2e) tests. These tests ensure that the most important user journeys work correctly from start to finish. | ||||||||
|
|
||||||||
| ### Bug Fixing | ||||||||
| Every bug fix must include a new test that: | ||||||||
| - Reproduces the bug scenario | ||||||||
| - Verifies the fix works correctly | ||||||||
| - Prevents regression in the future | ||||||||
|
|
||||||||
| ### CI Requirements | ||||||||
| **CI cannot merge if red** — this is non-negotiable. | ||||||||
|
|
||||||||
| All tests must pass before code can be merged. No exceptions. | ||||||||
|
|
||||||||
| --- | ||||||||
|
|
||||||||
| ## Backend | ||||||||
|
|
||||||||
| ### Test Coverage | ||||||||
| - **80% test coverage** is enforced as a CI rule | ||||||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||
| - Coverage gates are mandatory and will block merges if not met | ||||||||
|
Comment on lines
+26
to
+27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two points are redundant. 'Enforced as a CI rule' already implies that mandatory coverage gates will block merges. You can combine them into a single, more concise point.
Suggested change
|
||||||||
|
|
||||||||
| --- | ||||||||
|
|
||||||||
| ## Frontend | ||||||||
|
|
||||||||
| ### Test Coverage | ||||||||
| **80% test coverage** is required for: | ||||||||
| - Utils | ||||||||
| - Validation logic | ||||||||
| - Data mapping functions | ||||||||
|
|
||||||||
| ### UI Testing Approach | ||||||||
| - **Don't unit test the UI** — avoid testing implementation details of visual components | ||||||||
| - **Test component logic** — focus on behavior, state management, and business logic within components | ||||||||
|
Comment on lines
+40
to
+41
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The statement 'Don't unit test the UI' is very absolute and could be misinterpreted. While the intent to avoid testing implementation details is correct, this phrasing might discourage valuable component-level testing. Consider rephrasing to emphasize testing behavior over implementation, which seems to be the core message of these two points.
Suggested change
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two statements are slightly redundant. The first statement, 'CI cannot merge if red — this is non-negotiable', already implies that all tests must pass. You could combine them for conciseness and impact.