Minor test refactoring to improve on performance closes #383 #384
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
UX research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "test-performance-optimization"
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?
Description of the implemented changes
The changes were:
Comprehensive test suite optimization: reduce execution time, improve test quality, and establish performance testing infrastructure
What has been changed?
Test Suite Optimization
Seeds Test Suite Reduction
membership_fees/*_test.exsmembership_fees/cycle_generator_test.exsauthorization/*_test.exsSlow Test Suite Implementation
@tag :slowor@describetag :slowfor nightly execution:CI/CD Pipeline Updates
Standard CI Pipeline
mix test --exclude slowinstead ofmix testci-devcommand: Now usestest-fastinstead oftestNew Nightly CI Pipeline
nightly-testspipeline that runs daily at 2 AM (cron) and can be manually triggeredmix test) for comprehensive coverage including slow/performance teststest-slowtotest-allto accurately reflect functionalityDeveloper Workflow Improvements
Justfile Commands
test-fast: Runs only fast tests (mix test --exclude slow)test-slow: Runs only slow/performance tests (mix test --only slow)test-all: Runs all tests (mix test)ci-dev: Now usestest-fastfor faster feedbackTest Quality Improvements
UserLive Test Refactoring
select_allchecked statePerformance Test Enhancements
GroupLive.ShowTestandGroupLive.IndexTest:@moduletag :slowto@describetag :slowinGroupLive.ShowTestto prevent navigation tests from being incorrectly taggedDocumentation
New Analysis Documents
docs/test-performance-optimization.md(712 lines):docs/test-optimization-user-liveview-analysis.md(524 lines):docs/test-optimization-policy-tests-analysis.md(868 lines):Updated Documentation
CODE_GUIDELINES.md:@describetagvs@moduletagusagetest/seeds_test.exs:@moduledocexplaining test reduction rationaleTest Infrastructure
Test Helper Updates
Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
Performance Impact Summary
Future Optimization Opportunities
The following analysis documents identify additional optimization opportunities for future work:
Policy Tests Suite (
docs/test-optimization-policy-tests-analysis.md):User LiveView Tests (
docs/test-optimization-user-liveview-analysis.md):Code Review Fixes
This PR addresses feedback from multiple code reviews:
Commit
67e06e12cefixes:@moduletag :slowscope issue inGroupLive.ShowTestCommit
91f8bb03bcfixes:Breaking Changes
None - All changes are backward compatible:
Migration Notes
Developers should:
just test-fastormix test --exclude slowfor faster local feedbackjust test-allormix testbefore committing to ensure full coverage@tag :slowor@describetag :slow(not@moduletag)Minor test refactoring to improve on performanceto Minor test refactoring to improve on performance closes #3839feb6a47aatob4adf63e83