
Getting Started Guide
How to Use Machinet
A practical guide to get you up and running with Machinet. Written by Delv Editorial, Delv Team.
Getting started with Machinet
In this guide, you'll learn how to quickly generate unit tests for your Java and Kotlin projects using Machinet. You'll be able to automate the tedious process of writing tests, allowing you to focus more on coding.Step 1: Sign up and set up
- Go to Machinet's website.
- Click on the “Sign Up” button in the top right corner.
- Fill in your email address and create a password. Confirm your password and click “Create Account.”
- Check your email for a verification link and click it to activate your account.
- Log in to your account.
Step 2: Your first unit test
- Once logged in, navigate to the “Dashboard.”
- Click on “New Project” and enter your project details (name, language, etc.).
- Upload your Java or Kotlin source files by clicking the “Upload Files” button.
- After uploading, click on the “Generate Tests” button. This will prompt Machinet to analyse your code.
- After a moment, you’ll see a list of generated tests. Review them for accuracy.
- Click “Download Tests” to save the generated JUnit or Mockito tests to your local machine.
Step 3: Get better results
- Ensure your code follows the Given-When-Then style to help Machinet generate more relevant tests.
- Use meaningful method names and comments in your code to guide the AI.
- After generating tests, run them in your IDE to see if they pass, and adjust your code as necessary.