AI
Unit test
Generation _
Push your productivity with automated unit test generation. Download the Machinet plugin for Java
Java method

                        
Generated test

                        
Code faster, reduce mistakes, and take your team to the next level
Easy to use
  • install the Intellij plugin
  • click     near the method you want to test
  • edit unit tests if needed
Parameterization and Mocks
The AI is capable of writing unit tests with rich parameterization and providing necessary mocks for side-effects by using JUnit, Mockito, and other famous frameworks.
Our partners
Meaningful unit tests
Let's face it. Unit testing is a chore. Just automate it.
Clear and Readable unit tests
Machinet generates readable test names that outline the test scenario. Tests will follow the Given-When-Then style for even better structuring.
Java method

                        
Generated test

                        
Filling the variables
No more dummy inputs to the variables or placeholders you need to put manually. Using context, Machinet will suggest field values that match the implementation code behavior.
Java method

                        
Generated test

                        
Mocks for side-effects
Have external dependencies? Machinet tests use mocks to isolate them and focus on the code being tested.
Java method

                        
Generated test

                        
How does it work?
Frequently asked questions
What is Machinet?
Machinet is a neural network plugin that helps you write unit tests faster with less work. Machinet takes the necessary context and method you chose and provides you with the unit test file. Machinet is available as an Intellij plugin. Find us in the store or click the link below.
How does the system work?
Machinet was trained on publicly available source code and natural language. We use only code that’s considered by the community as qualitative and implies good programming patterns. The model then is able to make a unit test suggestion for you based on your code. To utilize the technology install the plugin, then click the blue arrow near the name of the testing method. The generated test will appear in a test file, where you can check it and modify if needed.
Does it write perfect unit tests?
Although Machinet gives you a significant productivity boost and is clever enough to serve you, it still makes errors, please double-check any code provided.
What do I need to use it?
The model doesn’t require any specific dependencies, but currently, it’s limited to Java language. It uses JUnit, Mockito and other popular frameworks by default.
How good is that?
From our experience, the model provides quality unit tests most of the time. And it’s getting smarter constantly. Nonetheless, you are still in charge and any code provided by Machinet should be carefully reviewed and vetted like any other code.
What context does Machinet use to generate tests?
Machinet only uses the necessary code needed to generate unit tests for the chosen method. We use SSL encryption during transit.
Is it free?
You can use Machinet for free now. Currently, it is in beta.
Install plugin