MoreUnit / org.moreunit.intellij.plugin

MoreUnit IntelliJ Plugin
33 stars 8 forks source link

'Jump to test' does not popup 'create test' dialog if no tests exist #12

Open nikhilw opened 7 years ago

nikhilw commented 7 years ago

Steps:

  1. Install intellij idea (17.1.1)
  2. install moreunit plugin from repositories (1.0.6)
  3. write a java class (no test class)
  4. select goto -> jump to test

On first attempt, it shows a popup on class name saying that no test class was found. Then on there is no popup. Neither is there a dialog asking to create a new test; similar to how in Eclipse plugin does. It is preferable to have the generator called because the built in test generator in Idea does not support JMockit mocking of autowired dependencies and you have to do it manually.

ndemengel commented 7 years ago

Hi nikhilw,

Thanks for your report! As stated on the home page, it is a goal to keep this plugin really simple, mostly because I've not much time to dedicate to it - I have to admit. Therefore at the time I chose to only implement the core features that would make the plugin useful on a day to day basis, namely: navigating between production files and test files.

Also, it is not only targeting Java, and generating valid test files for all languages would be quite a challenge (though we could support languages on a per-case basis as the need arise). As for generating mock setups, it has been a lot of work at the time, and I can't afford to spend that much time on it nowadays. Maybe it was going a step too far too ^^

That said, feel free to contribute to the project if you feel like it!