Skip to main content

Using the "duplicate test" code lens

If your situation requires the creation of multiple similar tests with only minor differences (for instance, if you're working in a TDD environment), using the "duplicate test" code lens will give you a significant productivity boost. You no longer need to copy and paste the tests you want to use as a template. Instead, in your test file, just click "duplicate test" above the test you want to duplicate. Symflower will automatically highlight all the parts you need to update manually (such as the test name).

Use the "duplicate test" code lens for one-click test duplication

Here's how Symflower's "duplicate test" code lens works, demonstrated in IntelliJ IDEA: