-
Notifications
You must be signed in to change notification settings - Fork 127
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
Remove long disabled integration test #1034
Remove long disabled integration test #1034
Conversation
There's no reasonable expectation for reenabling this test because the attributes that make it unsuitable for running in CI won't change
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.
Can this test be rewritten without the network requests? From the comments it seems like the test was meant to ensure the preview request recovered after a failed convert attempt, which seems like behavior it would still be nice to test.
Assuming that you're asking about From what I understand of |
One idea here might be:
It looks like a lot of work went into this test: the HTTPClient, etc., and might be the only place we actually test the |
Those are all good ideas for how we could setup a suite of integration tests. We should put those ideas in an issue tracker as information for the future. Still, it doesn't change that these tests aren't running anywhere and haven't run for the last 2.5 years.
|
Another way to phrase my thoughts on this: I feel that "setup an integration test suite" is something that belongs in an issue tracker rather than as a collection of commented out or dead code. In my opinion that would both be a better place to gather ideas on how to accomplish this and it would increase the visibility of this work and increase the odds that we prioritize it in the future. To further highlight how ineffective dead code is as an issue tracker; rdar://85046362 which is referenced above the unused As an aside to this aside; I don't feel like information like that belongs in the source code either because the same information can be accessed in the git history if someone is curious. |
Thanks for going through those tests to check their coverage elsewhere!
This is a good point. It makes sense to me to use an issue tracker to gather ideas and visibility for this. |
I filed rdar://138178779 to track setting up a suite of integration tests and/or stress tests |
35e3bb6
to
26dfb6b
Compare
@swift-ci please test |
# Conflicts: # Tests/SwiftDocCUtilitiesTests/PreviewActionIntegrationTests.swift
26dfb6b
to
49841d9
Compare
@swift-ci please test |
Bug/issue #, if applicable:
Summary
This removes an integration test—and code only used by that test—that's been disabled since the initial open source release of Swift-DocC.
The original reason for disabling this test was that it makes real network requests to a local preview server. This behavior made the test unsuitable for running in a CI environment because its effect couldn't be isolated. Since the purpose of the test is to test real network request to the local preview server, there's no reasonable expectation for reenabling this test.
Dependencies
None
Testing
None.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/test
script and it succeeded