-
Notifications
You must be signed in to change notification settings - Fork 143
Adapt tests to work better in Swift CI #45
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
19 commits
Select commit
Hold shift + click to select a range
65fa3d5
Add utility to create temp directories in unit tests
d-ronnqvist fb6fa6e
Create new target for test utilities
d-ronnqvist b645298
Pass the temporary directory to ConvertAction
d-ronnqvist b7e969b
Re-enable one skipped test
d-ronnqvist 777319f
Update new tests to use `createTemporaryDirectory` helper
d-ronnqvist 0240e39
Remove `createDirectoryForLastPathComponent` argument in test helper
d-ronnqvist af38caa
Update test helper documentation
d-ronnqvist 8c614df
Prefer `FileManager.temporaryDirectory` property in ConvertAction
d-ronnqvist 2566321
Merge branch 'main' into ci-test-separation
d-ronnqvist 5d4ce3e
Move `Files` and `Folder` types into test utility target
d-ronnqvist db26074
Add additional safety checks when creating and removing temporary dir…
d-ronnqvist a3035e2
Replace `TempFolder` test class with `createTempFolder` test function
d-ronnqvist cc3d57d
Use XCTUnwrap instead of force unwrap in test helper
d-ronnqvist 3105c5c
Merge branch 'main' into ci-test-separation
d-ronnqvist 0436ad5
Also shadow `FileManager.temporaryDirectory` in tests
d-ronnqvist d71cc38
Add temp directory test helper variant with "named" argument
d-ronnqvist 1e5de9f
Fix test helper syntax in disabled preview server test
d-ronnqvist 4dac6a4
Re-enable one file monitoring test
d-ronnqvist 745e09a
Merge branch 'main' into ci-test-separation
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 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.
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.
Right now this target is only used to share one file between the two test targets but there are more code that could be moved out of SwiftDocC itself into this test target instead.
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.
This is great! I've been wanting something like this for a while. No need to do it now- but eventually moving all of our test bundles over to this library would have a big impact on our repo size I think.