Skip to content
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

DragDrop unit tests hang, should be integration tests #3336

Open
weltkante opened this issue May 23, 2020 · 3 comments
Open

DragDrop unit tests hang, should be integration tests #3336

weltkante opened this issue May 23, 2020 · 3 comments
Labels
test-bug Problem in test source code (most likely)
Milestone

Comments

@weltkante
Copy link
Contributor

weltkante commented May 23, 2020

.NET Core Version:
master

Have you experienced this same bug with .NET Framework?:
not applicable

Problem description:
DoDragDrop tests in ToolStripItemTests and ControlTests are hanging CI.

Not sure if its worth to root-cause the hang, I think they should be integration tests instead as proper drag'n'drop tests need mouse interaction, otherwise OLE probably exits out very early. These tests basically just cover a failure case which in practice nobody is interested in (and can easily be covered by the integration test as well). Sure, its useful to ensure that a noop failure case stays a noop failure case, but it may give a false sense of test coverage if there is actually no test of the code paths used for successful drag'n'drop.

Expected behavior:

  • DoDragDrop tests should not hang CI
  • DoDragDrop tests should cover non-failure-cases (requires integration test)

Minimal repro:

@hughbe
Copy link
Contributor

hughbe commented May 25, 2020

I did add these tests to make sure our interop bindings worked (i.e. didn't crash, throw EntryPointNotFoundException etc)

@RussKie RussKie added the test-bug Problem in test source code (most likely) label May 26, 2020
@RussKie RussKie added this to the Future milestone May 26, 2020
@willibrandon
Copy link
Contributor

If the intent is to test interop bindings work and do not crash, perhaps the new integration tests in DragDropTests will suffice?

@weltkante
Copy link
Contributor Author

Probably, since any test that covers a working scenario implicitly also covers testing whether the interop definitions work. I don't know if the original tests still show up as hangs, if so its probably worth removing them if we now have tests that do the same and more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

4 participants