wrdv / testme-idea

TestMe IntelliJ IDEA Plugin - Auto generates Unit Test code
http://weirddev.com/testme
Other
170 stars 63 forks source link

v6.4.1 incompatible with IDEA 2024.2.EAP #41

Closed yaronyam closed 2 weeks ago

yaronyam commented 4 months ago

following compilation issues of latest version against IDEA 2024.2 EAP:

Invocation of unresolved constructor DefaultTemplate.<init>(String, String, URL, URL) (2 problems)

Invocation of unresolved method DefaultTemplate.getTemplateURL() (1 problem)

huangliang992 commented 1 month ago

Do we have a plan to Migrating from Gradle IntelliJ Plugin (1.x) to IntelliJ Platform Gradle Plugin (2.x), IDEA 2024.2+ Requires IntelliJ Platform Gradle Plugin (2.x)

yaronyam commented 1 month ago

@huangliang992 - correct. we need to migrate to IntelliJ Platform Gradle Plugin 2.x first. Regarding code changes, main issue is the need for backward compatibility with 2023.2 - 2024.1 versions, probably with reflection, if it's not too complicated. Thanks

yaronyam commented 3 weeks ago

@huangliang992 tested some scenarios...looks good 👍 few comments:

huangliang992 commented 3 weeks ago
  1. replaced CommonShortcuts.INSERT with CommonShortcuts.getInsert().
  2. updated DefaultTemplate instance creation to meet multi constructors, it's the reason caused 'TestMeGeneratorTestNgTest > testMockReturned' UT failing.
  3. "would be good if integrationTest can remain separated" i'm sorry for having no much time to finish this task recently
yaronyam commented 2 weeks ago

Support for IDEA 2024.2 developed by @huangliang992 in https://github.com/wrdv/testme-idea/pull/48 - released in v7.6.0