You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove observable-behavior violations from tests - #151
Removes test-standard violations ("Assert Observable Behavior") from the test projects.
StdlibProviderTests: removed the 50 ms Stopwatch assertion; added GetSymbolTable_RepeatedCalls_ReturnSameDiagnostics (caching through the public API). The wall-clock "Performance" requirement was removed (the Caching requirement stays; caching is described in the design docs).
WorkspaceLoaderTests: removed the Task.WhenAny/10 s timeout (plain await, assert result); removed the reflection signature tripwire and the reflected invoke of the two-parameter overload (the direct call is kept).
AstSerializerTests: removed the reflection DeclaringType tripwire.
GeneralViewLayoutStrategyTests: replaced the two reflection tests of the private DecorateTruncated with public BuildLayout tests (TruncatedBoxBesideRoutedEdge_DecoratesOnlyTruncatedBox, TruncatedNestedPackages_DecorateOnlyMatchingBoxes). Removed the four reflection tests of the private ClearEndDecorations post-pass; they cannot be reached deterministically through the public API, and the public EndDecorationsHaveCleanApproach tests (including the gallery views) remain.
Updated docs/reqstream and docs/verification for the renamed and removed tests.
PublicApiAnalyzers was not added (it would need Shipped/Unshipped files for all library projects); the tripwires were removed instead.
Type of Change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Documentation update
Code quality improvement
Related Issues
None.
Pre-Submission Checklist
Build and Test
Code builds successfully and all tests pass: pwsh ./build.ps1
Code produces zero warnings
Code Quality
New code has appropriate XML documentation comments
Static analyzer warnings have been addressed
Quality Checks
All linters pass: pwsh ./lint.ps1
Testing
Added unit tests for new functionality
Updated existing tests if behavior changed
All tests follow the AAA (Arrange, Act, Assert) pattern
Test coverage is maintained or improved (the removed private-method tests reduce direct coverage of ClearEndDecorations)
Documentation
Updated README.md (if applicable)
Updated docs/ documentation (if applicable)
Added code examples for new features (if applicable)
Updated requirements.yaml (if applicable)
Additional Notes
Borderline items left unchanged: ResxResourceTests (reflection over public accessor properties and embedded resources only); InternalsVisibleTo for the Tests project (by design); tests that read output files produced by the tool or checked-in model/golden fixtures.
This pull request removes timing-, reflection-, and private-implementation-based test assertions, replacing them with public API and observable layout behavior checks while updating related verification and requirement artifacts.
Changes:
Replaced timing and reflection tests with deterministic public behavior coverage.
Added repeated-call diagnostics coverage and public truncation layout tests.
Updated verification and ReqStream documentation for renamed and removed tests.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The change leaves binary-compatibility coverage incomplete and makes the verification documentation overstate the remaining evidence by retaining an outdated test count.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Restore coverage for declared forwarding properties
Removing this verification row leaves the requirement's binary-compatibility clause unverified: the remaining source-location and round-trip tests validate property values, but not that the getters remain declared on SysmlViewNode. The linked ReqStream requirement still explicitly promises forwarding properties declared on that type, so please retain an API-level check or revise the requirement and verification text together.
This removal leaves the documentation claiming that binary compatibility is verified by two tests, but only the direct-call behavior test remains; the exact signature tripwire was removed. Please update the count so the verification document does not overstate the evidence.
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
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.
Pull Request
Description
Removes test-standard violations ("Assert Observable Behavior") from the test projects.
StdlibProviderTests: removed the 50 ms Stopwatch assertion; addedGetSymbolTable_RepeatedCalls_ReturnSameDiagnostics(caching through the public API). The wall-clock "Performance" requirement was removed (theCachingrequirement stays; caching is described in the design docs).WorkspaceLoaderTests: removed theTask.WhenAny/10 s timeout (plain await, assert result); removed the reflection signature tripwire and the reflected invoke of the two-parameter overload (the direct call is kept).AstSerializerTests: removed the reflection DeclaringType tripwire.GeneralViewLayoutStrategyTests: replaced the two reflection tests of the privateDecorateTruncatedwith publicBuildLayouttests (TruncatedBoxBesideRoutedEdge_DecoratesOnlyTruncatedBox,TruncatedNestedPackages_DecorateOnlyMatchingBoxes). Removed the four reflection tests of the privateClearEndDecorationspost-pass; they cannot be reached deterministically through the public API, and the publicEndDecorationsHaveCleanApproachtests (including the gallery views) remain.docs/reqstreamanddocs/verificationfor the renamed and removed tests.Type of Change
Related Issues
None.
Pre-Submission Checklist
Build and Test
pwsh ./build.ps1Code Quality
Quality Checks
pwsh ./lint.ps1Testing
ClearEndDecorations)Documentation
Additional Notes
Borderline items left unchanged:
ResxResourceTests(reflection over public accessor properties and embedded resources only);InternalsVisibleTofor the Tests project (by design); tests that read output files produced by the tool or checked-in model/golden fixtures.