Commit c4c0409
feat: Sprint 5 - CLI Polish & Class Diff (#2)
* feat: Complete Sprint 5 - CLI Polish & Class Diff
Sprint 5A: Class Matcher
- ClassMatcher with multiple matching strategies
- ExactName, Interface, Similarity, and Auto strategies
- Support for partial classes, nested classes, generics
- ClassMatchOptions and ClassMatchResult models
- 39 comprehensive unit tests
Sprint 5B: Class Command
- New `class` subcommand for class-to-class comparison
- ClassSpecParser for "file.cs:ClassName" syntax
- --match-by, --interface, --similarity options
- Integration with output formatters
- 23 unit tests
Sprint 5C: CLI Options
- --ignore-whitespace (-w) option
- --ignore-comments (-c) option
- --context (-C) option for context lines
- --mode (-m) option (auto/roslyn/line)
- --output (-o) and --out-file options
- --rich (-r) option for Spectre.Console output
- Comprehensive help text with examples
- 57 unit tests
Test Results: 361 tests passing
- Core: 147 tests (+39)
- Output: 130 tests
- CLI: 84 tests (+80)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* feat: Complete Sprint 6 - Testing & Documentation
Sprint 6A: Edge Case Tests
- SyntaxErrorTests for parse error handling
- EncodingTests for UTF-8/UTF-16 and Unicode
- WhitespaceTests for whitespace-only changes
- ModernCSharpTests (records, primary constructors, raw strings, etc.)
- PreprocessorTests for #if/#endif directives
- GenericTests for generic classes/methods
- 160 new edge case tests
Sprint 6B: Integration Tests
- New RoslynDiff.Integration.Tests project
- End-to-end C#, VB.NET, and line diff tests
- ClassCommand integration tests
- Output format integration tests
- Error handling tests
- 115 integration tests
Sprint 6C: Documentation
- Complete README.md with installation and usage
- docs/usage.md - Detailed CLI documentation
- docs/output-formats.md - Format descriptions
- docs/api.md - Programmatic API reference
- docs/architecture.md - System design overview
- docs/performance.md - Performance characteristics
- CHANGELOG.md - Version history
- samples/ - Example files and outputs
Sprint 6D: Performance Tests
- RoslynDiff.Benchmarks project with BenchmarkDotNet
- CSharpDifferBenchmarks for diff performance
- SyntaxComparerBenchmarks for comparison speed
- OutputFormatterBenchmarks for formatting
- PerformanceTests.cs for timeout validation
Test Results: 650 tests passing
- Core: 321 tests (+160)
- Output: 130 tests
- CLI: 84 tests
- Integration: 115 tests (new)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
---------
Co-authored-by: Rand Lee <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent b0d9a48 commit c4c0409
File tree
56 files changed
+15335
-36
lines changed- docs
- samples
- after
- before
- src
- RoslynDiff.Cli
- Commands
- RoslynDiff.Core/Matching
- tests
- RoslynDiff.Benchmarks
- RoslynDiff.Cli.Tests
- RoslynDiff.Core.Tests
- EdgeCases
- RoslynDiff.Integration.Tests
- TestFixtures
- ClassMatching
- Json
- Text
- Xml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+15335
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
0 commit comments