-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-133490: Add color support to remote PDB #133491
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
Conversation
This is why we need real integration tests. I think we should have a framework for users to specify some script and command then run the tests automatically. It's not trivial to mock this. |
I think the code looks straightforward, but we have to have integration tests. To be honest I would expect most of the future tests written in integration form, instead of the current protocol form, because that's how people think of it. I don't think integration test framework is difficult - we basically only need a subprocess to run some script (probably in an infinite loop). Then we need to define some commands, which can be directly passed into the attaching process by |
The changes are really trivial, it's just calling |
I don’t see integration tests as orthogonal to what we have currently. Every layer of testing helps in different ways. In my experience when an integration test fails is super difficult to know what the hell is going on and is much much trickier to get them right and synced across all build bots. You can see how often tests involving sub processes are racy. So I support this of course and is a great idea but I don’t think is either this or that. Is both |
Agreed. You can see how it took me 2 hours of wrestling with the build bots to get #133494 passing CI after I had things working locally. (And I'm not actually sure if it's being tested on macOS at all... The macOS build bots don't seem to be set up in a way that allows I definitely agree that the test suite is obviously incomplete if we don't have any tests exercising the Now that #133494 has landed there are some integration tests that you can base future ones off of, but I'd strongly encourage only using integration tests for things that can only be adequately tested using both a real client and a real server. Doing all future tests as integration tests sounds like a recipe for frustration. Also, some scenarios are virtually impossible to test with an integration test - like, exercising what happens if the remote process dies half way through writing a message. |
Uh oh!
There was an error while loading. Please reload this page.