piece / makegood

A continuous test runner for Eclipse PDT
https://github.com/piece/makegood/wiki
44 stars 17 forks source link

Can't run tests in Eclipse Juno (4.2.2) #38

Closed ghost closed 11 years ago

ghost commented 11 years ago

I downloaded the latest Eclipse package from http://www.eclipse.org/downloads/packages/eclipse-classic-422/junosr2 (Linux 64bits), installed PDT (tried both the non-SDK and SDK versions), EGit+EGit Mylyn+EGit Mylyn Github Feature, and then I installed MakeGood via the Update Site.

I followed the User guide instructions (added a new PHP Executable and the PEAR library) and I set the project's Test Folder and Test File pattern, just as it should be done.When I run a tests, however, nothing happens. The "MakeGood" view just keeps saying "Waiting for a test run...", no error, no nothing.

I also tried the latest development build (Kepler 4.3.6), same thing. Note that this setup works fine on my old Indigo (3.7.2), which I use on a daily basis.

ghost commented 11 years ago

After some playing around a bit, I realized that I can run tests fine if I right-click the file in the Explorer, the class in the Outline or the code itself. I was trying to run them via the "Alt+M L" and "Alt+M C" keyboard commands, which don't seem to work. The commands are set in the Keys configuration options, when I hit "Alt+M" the list of command shows up, but nothing happens when I click any command key after that.

matsu-hide8 commented 11 years ago

Hi,

"Alt + M" binding may be duplicated in your environment. Please check by the following:

  1. Menu: [Window] -> [Preferences]
  2. Left Tree: [General] -> [Keys]
  3. Please type "alt+m" into "type filter text" field.

If the "Alt + M" binding is duplicated, change the MakeGood binding.

ghost commented 11 years ago

That doesn't seem to be the problem, there are indeed several commands whose bindings start with "Alt+M", but they all relate to MakeGood (and their bindings have different keys after the "Alt+M" part and/or different "when" values).

In case it helps: eclipse_bindings

matsu-hide8 commented 11 years ago

I was able to run the test via key binding in Eclipse Juno.

However, after the list of commands was displayed, I was not able to run the test. Could you press quickly key binding before displaying it?

Please also try changing "Alt+M" into "Ctrl+M".

ghost commented 11 years ago

Interesting, you are correct! If I press quick enough (ie. before the list shows up), the commands do work. So maybe this is actually an Eclipse bug and not related to MakeGood itself?

Changing the commands to Ctrl+M made no difference, by the way.

matsu-hide8 commented 11 years ago

That's good!

I think that this problem has been caused by losing a focus. In e4, the UI was changed greatly. Therefore, it seems that the behavior differs from 3.8 in part.

ghost commented 11 years ago

well, from my part, I'm done, I just changed the key bindings to simple ones like "Alt+R" and it's fine. From what I understand from your comment, it seems to be Eclipse related and not a bug in MakeGood, so feel free to close the issue. Cheers!