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
Graphical editor SWTBot tests failing #2018
Comments
Do you know if it is a problem with the tests or a problem with the graphical editor? |
There seems to be a timeout in recognizing that the "new project" dialog has opened. |
Do you have a log of that. I tried to take a quick look and I'm unable to reproduce that issue. I am getting a legitimate test failure. Appears to be caused by something outside the GE. I'll add another comment with details when I have them. |
Okay. I am unable to reproduce the "New Project" dialog issue. A log would be helpful. I am consistently getting an error when trying to rename connections. It is unclear what is causing it but it appears to be a problem with the test and not the GE. Will prioritize once development restarts. |
I get the timeout when I run the GE tests inside eclipse: right click on the ge test project, run as -> junit plug-in test. Initially it also complained that I wasn't running the osate2 product but I updated that in the run configuration. Two tests hang with an open "new" dialog. It looks like a problem with the test. |
There was another more pressing build issue. I'll provide more detail once the jenkins builds are back to normal. |
Your issue is caused by "Run in UI thread" being checked. I usually launch the tests using a SWTBot Test configuration rather than a JUnit Plug-in Test configuration so I"m not sure if there are any other pitfalls in doing it that way. We won't be able to take a deep look until we resume work so no rush. I just took a quick look to check if it was something that would prevent usage of the editor. The issue that I'm seeing appears to be with the test. |
Oh, I should have remembered this. So the timeout is a non-issue. I'll check for the problem that made the jenkins build fail. |
I'm hoping it is the same one that makes it fail on my system. At least then it would be consistent. |
From the build log:
Running as swtbot test I get the same exception:
|
Thanks. That is the same error I'm receiving so at least it is reproducible. |
@lwrage do you mind running the tests again locally and on the build server with the current master? I am no longer able to reproduce it. I'm wondering if this is somehow related to the context menu issues that were affecting the xtext outline as well. |
Given that the failures occurred in the outline view context menu I'd say you're right. Tests run ok on my laptop. |
How do you feel about re-enabling the tests? Does this need to remain open? |
I expect them to work. Could you create a PR that enables them? |
Done |
Summary
Some tests fail after the upgrade to Eclipse 2019-09. This happens on Linux, macOS, and Windows.
I have disabled the tests for now.
Environment
The text was updated successfully, but these errors were encountered: