Feature/non regression tests#1
Open
AkliKais wants to merge 2 commits into
Open
Conversation
…ature Documentation improvements: - Enhanced CLAUDE.md with systematic documentation guidelines - Added CHANGES.log for tracking all modifications chronologically - Created ARCHITECTURE.md for system architecture documentation - Defined when/what/how to document changes GitHub Apps configuration: - Added GitHub Actions CI workflow for frontend and backend tests - Configured Dependabot for npm, pip, and GitHub Actions dependencies - Created install-github-app skill with setup guides and examples Restocking feature: - Added new Restocking view for demand-based order creation - Implemented POST /api/restock endpoint for restocking orders - Enhanced Orders view to display submitted restocking orders - Added navigation link and routing for restocking functionality Files added: - .claude/skills/install-github-app/SKILL.md - .github/workflows/ci.yml - .github/dependabot.yml - ARCHITECTURE.md - CHANGES.log - client/src/views/Restocking.vue Files modified: - .gitignore (allow CHANGES.log) - CLAUDE.md (documentation guidelines) - client/src/App.vue (navigation) - client/src/api.js (restocking API) - client/src/main.js (routing) - client/src/views/Orders.vue (restocking orders display) - server/main.py (restocking endpoint) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added extensive test coverage to prevent breaking changes and enable confident refactoring. Backend Tests (test_non_regression.py): - Critical User Flows: Complete workflows for inventory, orders, dashboard, restocking - Data Consistency: Verify counts, calculations, and aggregations match across endpoints - Filter Combinations: Test all warehouse, category, status, and time filters - Edge Cases: Empty results, 404s, special characters, case-insensitivity - Business Logic: Revenue goals, low stock thresholds, spending totals, trends - API Security: Input validation, injection protection - Performance: Dataset queries and aggregation timing - Total: 60+ backend tests Frontend Tests (test_non_regression.spec.js): - Critical Navigation: All page loads and navigation flows - Dashboard: Metrics display and filter updates - Inventory: Table display and filtering - Orders: Display, details, status filtering - Restocking: Demand display, calculations, submission - Filter Integration: Persistence and multi-filter combinations - Data Display: Currency, dates, status badge consistency - Error Handling: API errors, empty results - Responsive Design: Mobile and tablet viewports - Performance: Load times and filter updates - Total: 30+ frontend tests Documentation (NON_REGRESSION_TESTS.md): - Explains what non-regression tests are and why they matter - Documents test coverage and running instructions - Includes best practices and maintenance guidelines - Provides examples of good vs poor tests Purpose: Create automated safety net that catches regressions before they reach production, enables confident code changes, and documents expected system behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
@claude review this MR |
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.
No description provided.