-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discourage using unrealistic catalog inputs in tests (#1106)
* Discourage future use of the "TestBundle" by renaming it. This example catalog contains significant handcrafted data that doesn't reflect realistic inputs. * Update tests that don't need a catalog input to use an empty context. * Update `SymbolGraphRelationshipsBuilderTests` to not load any catalog * Update name of test specifically about the unrealistic test catalog * Create minimal catalog for final remaining `ChoiceTests` test case * Create minimal catalog for final remaining `VolumeTests` test case * Avoid referencing an input catalog for image size test * Create minimal catalog for `NonInclusiveLanguageCheckerTests` * Create minimal catalog for `DiagnosticTests` * Create minimal catalogs for some `DocumentationContextTests` * Update more tests that don't need a catalog input to use an empty context. * Create minimal catalogs for more `DocumentationContextTests` * Create minimal catalogs for some `VideoMediaTests` * Create minimal catalogs for two `SemaToRenderNodeTests` * Create minimal catalogs for a few more `DocumentationContextTests` * Load test catalogs from in-memory file system in many more tests * Rename legacy test bundle again * Resolve some warnings in tests about using `var` for unmutated action
- Loading branch information
1 parent
cd3f5ba
commit 5aa2c45
Showing
184 changed files
with
971 additions
and
925 deletions.
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: "LegacyBundle_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: "LegacyBundle_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: "LegacyBundle_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: "LegacyBundle_DoNotUseInNewTests", | ||
excludingPaths: [ | ||
"sidekit.symbols.json", | ||
"mykit-iOS.symbols.json", | ||
|
@@ -1624,7 +1624,7 @@ class ConvertServiceTests: XCTestCase { | |
""") | ||
#else | ||
let (testBundleURL, _, _) = try testBundleAndContext( | ||
copying: "TestBundle", | ||
copying: "LegacyBundle_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.