Test class creator
JetBrains8d5ea158-1627-4f90-8c42-2287a0662e8e · v—
Instructions : use default shortcut Shift+Alt+Q while you have a class in the src/ directory opened Plugin for creating test classes which have the necessary structure for unit testing a class: Usages imported from the original class Class dependencies defined as private test class variables Class dependencies mocked and injected into the tested class
Rating distribution
Reviews 2
Super helpful! This saves a lot of time and matches almost exactly how we work :). It could be improved in the following ways for us: Allow configuration of what the base class is (our own extended version of TestCase). Allow configuration of in what directory to generate the file. We have a src/ and tests/src/ directory setup.
Really handy tool when coding lots of Classes and need to write tests for them! Noticed, that it does not support dependencies coming from the parent class. I hope this will improve on later versions.