Release Notes

TestMe Plugin Releases

TestMe version Supported IDEA versions Release Notes
6.4.0 2023.2 +
  • Select methods/fields to be tested/mocked when generating test. Option enabled via new TestMe Settings - defaults to false (contributed by HuangLiang - PR #28)
  • Generate Mockito stub matcher with relevant type class: any(<Type>.class) instead of any() (contributed by zhangfj88 - PR #27)
  • New TestMe Settings option - Declare exceptions thrown by tested class method. default false. (contributed by zhangfj88 - PR #29)
6.3.0 2023.2 +
  • Support unit test generation with PowerMock - with JUnit4 template (contributed by HuangLiang - PR #26)
  • Stub internal method calls, if configured in Settings -> TestMe (contributed by HuangLiang - PR #26)
  • Mock fields injected by DI if class has DI annotations (contributed by HuangLiang - PR #24)
  • Avoid mocking log/logger fields initialized inline
6.2.0 2023.2 +
  • Generate mock verify method call statements if method retruns void(contributed by HuangLiang - PR #23)
  • Do not generate Mockito mocks for classes with only private constructors (contributed by HuangLiang - PR #22)
  • Generate UT for enum methods (raised by gadeji on Feb 15 '24)
  • Do not generate UT for methods inherited from java base enum class
6.1.0 2023.2 +
  • Support IDEA EAP 2024.1 - adapt to new velocity initialization mechanism
  • Avoid overriding Goto Test keyboard shortcut conflicts (reported by geld0r on Jan 11 '24')
  • Improve mock response generation when test subject dependency class originates from a lib
  • Scala support: fix method reference search error. remove backward compatibility with outdated scala plugin SDK
6.0.3 2023.2 - 2023.3
  • bugfix: NPE on javaVersion.isAtLeast() during renderMethodParams() from macro - raised by juliantheil on 23 Nov 2023
  • replace deprecated Velocity property resource.loader with backward compatibility
  • declare overridden Goto test/subject action shortcut key in plugin.xml as well
6.0.2 2023.2 - 2023.3
  • Support IDEA 2024.1 EAP: replace removed & deprecated JB SDK methods/classes
6.0.1 2023.2 - 2023.3
  • Support IDEA version 2023.3 - fix issue where TestMe context menu fails to open due to error: return value of "com.intellij.openapi.util.IconPathPatcher.getContextClass(String)" is null (reported by Michael Meirsman on Nov 19 '23)
  • Fix NPE on test generation while resolving dependencies with anonymous class, resulting in partial test code generation
6.0.0 2023.2
  • Support IDEA 2023.2 (requested by Zillion on Aug 2 '23)
  • test generator: use argument name as string value for generic type parameters
5.1.0 2021.x
  • mock generation: generate Mockito openMocks() instead of deprecated initMocks() method if mockito-core version in target test module classpath is >= 3.4 version. issue raised by aoudiamoncef on March 3 '21 (https://github.com/wrdv/testme-idea/pull/11)
  • test params generation: support java 9 collection initialization methods if project is using JDK 9
  • bugfix: should generate n-multi dimension array instead of single dimension array for relevant types (raised by ageovb on Jun 2 2021)
  • test params generation: substitute generic type parameters of nested generic objects (raised by ben2020 on 27 Mar 2020)
5.0.0 2021.x
  • bugfix: compatibility issue of illegal status on startup: "Should be called at least in the state COMPONENTSLOADED...". Fixed by Weiran Wu. Reported by ryan1999 on Feb 18 '21
  • Bugfix: critical startup error on IDEA 2021 due to sdk incompatibility: Plugin ‘com.weirddev.testme’ failed to initialize and will be disabled. Please restart IntelliJ IDEA. java.lang.NoSuchMethodError: ‘java.net.URL. reported by donald001 on April 8 '21 in IDEA 2021.1
  • Format test method id ( in velocity template: ${method.methodId} ) in compatibility with javadoc links format (with hash before method name instead of a dot). Issue raised by tylerg-smt on April 14 '21
  • Breaking changes: IDEA versions 2020.X and 2019.x are no longer supported (please use TestMe version 4.0.0)
4.0.0 2019.3+
  • Configuration: Support customizable test code templates. (requested by dotJack / Kristjan on May 29 '19, mhuelfen on Jul 2 '19 and other users)
  • Fix logged error for incompatibility with IDEA 2020.1: "ERROR - Container.ComponentManagerImpl - class com.intellij.openapi.keymap.KeymapManager it is a service, use getService instead of getComponent". (reported by uweschaefer on June 14 '20)
  • Fix Ctrl+Shift+T keyboard conflict for GoTo Test action (reported by pengwang on Jul 20 '20)
  • Fix load time plugin registration exception in logs
3.0.3 2019.x
  • Fix plugin load failure when IDEA runs on JDK 12+ - "couldn't initialize TestMe plugin" (reported by contra-bit on February 27 '20)
3.0.2 2019.x
  • Fix logged error on GotoTest action re-registration in IDEA 2019.2+ (reported by antediluvian on November 26 '19)
  • Generate Test class name with prefix/suffix configured in Settings -> Code Style -> Java -> Code Generation (requested by jeffreyfate on October 3 '19)
3.0.1 2019.x
  • Fix issue with Goto Test dialog (Ctrl+Shift T) not opening in IDEA 2019.2.x (reported by Simon Stratmann on August 23 '19)
  • Fix degradation issue with mock stub args not generated properly due to typo in macro code
  • Fix error during test generation for target scala class's ( while searching method args references)
3.0.0 2019.x
  • Fix broken compatibility with IDEA 2019.1 (reported by albertchen on April 1 '19)
  • Backward Compatibility: IDEA 2016, 2017, 2018 versions are no longer supported. Scala support: tested against Scala plugin version 2019.1.6 (Optional dependency)
2.0.0 2016.3 - 2018.2
  • Generate test code in Scala with Spec2 test framework
  • Generate Spock Parameterized tests. beta feature. multi parameter sets not supported yet
  • Test Scala classes
  • Properly Assert methods returning Java or Scala futures
  • Test params generator: support Scala Enumeration and sealed objects enumerations
  • New Settings UI to control some aspects of the test generation behavior
  • In Settings UI - an option to skip test generation for inherited methods (requested by subodh on Sep 16 '17 and by manishkumawat_900 on July 16 '18)
  • bugfix: inherited methods with generic params don't get substituted in generated tests (reported by Avichai S. on April 30 '18)
1.7 14 - 2018.x
  • Generate mocked return values for method calls of mocked dependencies in tested class
  • Test params generator: locate and initialize concrete types found in project source instead of passing null for interface/abstract parameter types
  • Get configuration from system properties (a temporary solution to support runtime configuration control via the built in IDE Scripting Console - on the Tools menu). Note: Some of these configuration properties may not be supported in future releases. More info and usage instructions here
1.6 14 - 2018.x
  • Test params generator improvements: heuristically identify and ignore unused properties by the tested method, pass null for constructor arguments that initialize unused properties
  • Mock final classes when Mockito option mock-maker-inline is set in project resource file /mockito-extensions/org.mockito.plugins.MockMaker (reported by koperko on Aug 11 '17)
  • bugfix: Goto Test or Test Generation popup doesn't open for python files due to internal error on testability validation check (reported by aristotll on July 30 '17)
  • bugfix: test params generator - Java Primitive wrappers should not be unwrapped to avoid method call ambiguity (reported by intars on June 6 '17)
  • bugfix: auto location of the appropriate target test module src directory in a multi module project
1.5.2 14 - 2018.x
  • bugfix: Goto Test or Test Generation popup doesn't open for python files due to internal error on testability validation check (reported by aristotll on July 30 '17)
1.5.1 14 - 2018.x
  • bugfix: test params generator - Java Primitive wrappers should not be unwrapped to avoid method call ambiguity (reported by intars on June 6 '17)
1.5.0 14 - 2018.x
  • TestNG framework support - added a new option on TestMe popup UI to generate TestNG test class
  • Groovy test params generator improvements: do not initialize map constructor properties that are not used in tested class
  • Groovy test params generator improvements: prefer map constructor over biggest constructor if the type has 50% more setters than constructor arguments
1.4.0 14 - 2018.x
  • Spock framework support - added a new option on TestMe popup UI to generate Spock test
  • Better auto identification of matching test root directory in a multi module project without prompting the user
  • Initialize tested subject class directly when no mocks generated
  • Skip generation of mock supporting statements (imports, @Before..) when no mocks generated
  • Skip generation of test subject initialization statement when only static methods being tested
  • Improve constructor selection and initialization of non static nested classes
1.3.0 14 - 2018.x
  • On test class name collision - popup dialog for renaming generated class name
  • Format generated test according to relevant Code Style Settings
  • Default TestMe shortcut key changed to Alt+Shift+Q due to collision with Scala plugin
  • Test params generator: handle varargs types
  • Groovy params generator: pass null for inaccessible type initialized by inline setters
1.2.0 14 - 2018.x
  • Support testing Groovy classes
  • Identify cyclic object initialization, pass null instead.
  • Improve performance when traversing nested objects.
  • Test parameters initialization - pass null instead of initializing un-accessible types.
  • Groovy test generation: ignore excessive property setters for inline initialization.
  • Bugfix: in Groovy generated tests - wrap non String keys in maps.
  • Parameter initialization: Ignore constructors accepting interfaces when default constructor exists.
1.1.0 14 - 2018.x Generate Groovy tests - new option in TestMe popup
1.0.1 14 - 2018.x Initialize objects in generic collections
1.0.0 14 - 2018.x
  • Generate Java Tests with JUnit 4 or 5
  • Mock with Mockito

Updated: