Tool for helping the developers to write simple and maintainable unit tests with minimal effort on the tedious part and let them focus on the important part of the tests.
This plugin promotes the “Test First” approach. Creates a well-structured test method skeleton from the method signature with gherkin-styled blocks.
- given-when-then blocks (Gherkin style)
- given: pre-initialized parameter values
- when: method is called
- then: assert for return value
Additional features
- using Mockito runner for fast test execution
- mock dependencies of the tested class
- using TestValueFactory for effortless but consistent input value creation, see samples below
- using JSON comparison for checking complex result types instead of endless asserts on each single field value
- customization through preferences
Spring support
- using Spring testing annotations if that is preferred or needed
- enhanced rest endpoint testing with MockMvc
See more details and code samples on the update site: https://csorbazoli.github.io/junit-tools-updatesite/
Important note / disclaimer
This plugin has reasonable default settings for creating test method skeletons, but you'll need to extend and fine-tune those settings based on the ever-changing requirements of your specific project. The plugin has a configurable set of default values for the input parameters, imports, naming conventions, etc. Feel free to adjust these settings according to your needs.
Please remember, that testing is a continuous effort that is part of the development task. The test implementation evolves with the production code, just like the tools we use.
Categories: Testing
Tags: JUnit 5, code generation, test generator, JUnit Test, JUnit 4
Additional Details
Eclipse Versions: 2023-03 (4.27), 2022-12 (4.26), 2022-09 (4.25), 2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30), 2024-03 (4.31), 2024-06 (4.32), 2024-09 (4.33)
Platform Support: Windows, Linux/GTK
Organization Name: csorbazoli
Development Status: Alpha
Date Created: Thursday, January 19, 2023 - 15:35
License: Apache 2.0
Date Updated: Saturday, March 23, 2024 - 05:24
Submitted by: Zoltán Csorba
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
October 2024 | 0/0 | 0 | 0 |
September 2024 | 59/642 | 573 | 9 |
August 2024 | 55/641 | 524 | 13 |
July 2024 | 52/663 | 556 | 14 |
June 2024 | 51/681 | 674 | 14 |
May 2024 | 55/682 | 709 | 17 |
April 2024 | 55/687 | 743 | 9 |
March 2024 | 43/694 | 1055 | 15 |
February 2024 | 65/687 | 573 | 6 |
January 2024 | 71/691 | 596 | 8 |
December 2023 | 58/671 | 648 | 9 |
November 2023 | 57/686 | 800 | 16 |
Unsuccessful Installs
Unsuccessful Installs in the last 7 Days: 12
Count | Error Message |
---|---|
12 | Cannot continue the operation. There is another install operation in progress. |