-
Notifications
You must be signed in to change notification settings - Fork 128
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
Discourage using unrealistic catalog inputs in tests #1106
Merged
d-ronnqvist
merged 19 commits into
swiftlang:main
from
d-ronnqvist:discourage-using-unrealistic-test-bundle
Dec 5, 2024
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
47c33f7
Discourage future use of the "TestBundle" by renaming it.
d-ronnqvist d144a67
Update tests that don't need a catalog input to use an empty context.
d-ronnqvist 880c7f1
Update `SymbolGraphRelationshipsBuilderTests` to not load any catalog
d-ronnqvist 9e834e8
Update name of test specifically about the unrealistic test catalog
d-ronnqvist 7f9e204
Create minimal catalog for final remaining `ChoiceTests` test case
d-ronnqvist b5d32e8
Create minimal catalog for final remaining `VolumeTests` test case
d-ronnqvist 9c18643
Avoid referencing an input catalog for image size test
d-ronnqvist 04881aa
Create minimal catalog for `NonInclusiveLanguageCheckerTests`
d-ronnqvist 36fb640
Create minimal catalog for `DiagnosticTests`
d-ronnqvist 95c94ce
Create minimal catalogs for some `DocumentationContextTests`
d-ronnqvist 6c0a6f2
Update more tests that don't need a catalog input to use an empty con…
d-ronnqvist 4a56cda
Create minimal catalogs for more `DocumentationContextTests`
d-ronnqvist 0bba001
Create minimal catalogs for some `VideoMediaTests`
d-ronnqvist 5029f23
Create minimal catalogs for two `SemaToRenderNodeTests`
d-ronnqvist 164b1c7
Create minimal catalogs for a few more `DocumentationContextTests`
d-ronnqvist 87758ba
Load test catalogs from in-memory file system in many more tests
d-ronnqvist 27de70a
Merge branch 'main' into discourage-using-unrealistic-test-bundle
d-ronnqvist 86ce80f
Rename legacy test bundle again
d-ronnqvist 1756407
Resolve some warnings in tests about using `var` for unmutated action
d-ronnqvist 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
This file contains 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -1383,7 +1383,7 @@ class ConvertServiceTests: XCTestCase { | |
|
||
func testConvertAllPagesForOnDiskContent() throws { | ||
let testBundleURL = Bundle.module.url( | ||
forResource: "TestBundle", withExtension: "docc", subdirectory: "Test Bundles")! | ||
forResource: "DoNotUseInNewTests", withExtension: "docc", subdirectory: "Test Bundles")! | ||
|
||
let request = ConvertRequest( | ||
bundleInfo: testBundleInfo, | ||
|
@@ -1444,7 +1444,7 @@ class ConvertServiceTests: XCTestCase { | |
|
||
func testConvertSomeSymbolsAndSomeArticlesForOnDiskContent() throws { | ||
let testBundleURL = Bundle.module.url( | ||
forResource: "TestBundle", withExtension: "docc", subdirectory: "Test Bundles")! | ||
forResource: "DoNotUseInNewTests", withExtension: "docc", subdirectory: "Test Bundles")! | ||
|
||
let request = ConvertRequest( | ||
bundleInfo: testBundleInfo, | ||
|
@@ -1468,7 +1468,7 @@ class ConvertServiceTests: XCTestCase { | |
|
||
func testConvertNoSymbolsAndNoArticlesForOnDiskContent() throws { | ||
let testBundleURL = Bundle.module.url( | ||
forResource: "TestBundle", withExtension: "docc", subdirectory: "Test Bundles")! | ||
forResource: "DoNotUseInNewTests", withExtension: "docc", subdirectory: "Test Bundles")! | ||
|
||
let request = ConvertRequest( | ||
bundleInfo: testBundleInfo, | ||
|
@@ -1495,7 +1495,7 @@ class ConvertServiceTests: XCTestCase { | |
""") | ||
#else | ||
let (testBundleURL, _, _) = try testBundleAndContext( | ||
copying: "TestBundle", | ||
copying: "DoNotUseInNewTests", | ||
excludingPaths: [ | ||
"sidekit.symbols.json", | ||
"mykit-iOS.symbols.json", | ||
|
@@ -1624,7 +1624,7 @@ class ConvertServiceTests: XCTestCase { | |
""") | ||
#else | ||
let (testBundleURL, _, _) = try testBundleAndContext( | ||
copying: "TestBundle", | ||
copying: "DoNotUseInNewTests", | ||
excludingPaths: [ | ||
"mykit-iOS.symbols.json", | ||
"[email protected]", | ||
|
This file contains 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.
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.
nit: Any thoughts on something more explicit like
LegacyBundle_DoNotUseInNewTests
to make it clearer that this is a test bundle?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.
I like it.
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.
Updated in 86ce80f