Repository navigation
Move the navigation and configuration tests onto Nullean.Snapshots #4726
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
62867c6
Wire Nullean.Snapshots into every test project
Mpdreamz a9fd423
Compare rendered HTML with Nullean.Snapshots.Html
Mpdreamz 1ecc88d
Navigation tests: snapshot navigation trees instead of walking them
Mpdreamz 838c8de
Navigation rendering tests: snapshot the rendered component
Mpdreamz 120234a
Configuration tests: snapshot diagnostics and deserialised tables of …
Mpdreamz 0729cef
Use the shared NavigationDump in Navigation.Tests
Mpdreamz e3ff266
Scrub paths the same way on every operating system
Mpdreamz 12c95f5
Scrub random folder names under the temp directory
Mpdreamz fc688d1
Carry the rebased branch as a merge of its updated base
Mpdreamz 815c9af
Carry the rebased branch as a merge of its updated base
Mpdreamz 021c3c0
Make diagnostics snapshots and snapshot paths the same on every opera…
Mpdreamz fe5a8bf
Merge branch 'test/snapshots-infra' into test/snapshots-html-normalisers
Mpdreamz c7137f5
Merge branch 'test/snapshots-html-normalisers' into test/snapshots-na…
Mpdreamz 2b0c0d9
Match the repository root in the form DiagnosticsSnapshot writes it
Mpdreamz 63a4b4a
Merge branch 'test/snapshots-infra' into test/snapshots-html-normalisers
Mpdreamz 9d7a0b5
Merge branch 'test/snapshots-html-normalisers' into test/snapshots-na…
Mpdreamz 52a63cc
Merge remote-tracking branch 'origin/main' into test/snapshots-nav-co…
Mpdreamz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...gurationFileApiTests/EmitsError_WhenRepositoryNotInOrgSlashRepoForm.08363ed5.verified.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| error {repo}/docs/_docset.yml 'repository: no-slash' for API 'elasticsearch' must be in 'org/repo' form, e.g. 'elastic/elasticsearch-specification'. |
1 change: 1 addition & 0 deletions
1
...gurationFileApiTests/EmitsError_WhenRepositoryNotInOrgSlashRepoForm.af33dc75.verified.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| error {repo}/docs/_docset.yml 'repository: trailing-slash/' for API 'elasticsearch' must be in 'org/repo' form, e.g. 'elastic/elasticsearch-specification'. |
1 change: 1 addition & 0 deletions
1
...gurationFileApiTests/EmitsError_WhenRepositoryNotInOrgSlashRepoForm.c6f1a4ef.verified.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| error {repo}/docs/_docset.yml 'repository: /leading-slash' for API 'elasticsearch' must be in 'org/repo' form, e.g. 'elastic/elasticsearch-specification'. |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Severity: P3 (Low)
EmitsError_WhenRepositoryNotInOrgSlashRepoFormno longer assertsconfig.ApiConfigurations.Should().BeNull(), andconfigis now unused. If a regression kept the API configuration despite the invalidrepository:value, this test would still pass. Every siblingEmitsError_*test kept its config assertion next to the new snapshot, so this one is weaker than before. Add the assertion back afterMatchSnapshot().Generated by Libra. Specialist: libra-complexity. React with 👍 or 👎 to give feedback on this comment.