- Notifications
You must be signed in to change notification settings - Fork45
Generate tests with default configuration
Olga Naumenko edited this pageApr 28, 2023 ·4 revisions
With UnitTestBot, you can generate tests
- for a package,
- for a single class or a set of classes,
- for a method or a set of methods.
- Open your Java project in IntelliJ IDEA.
- Choose the required package, class or set of classes in the Project tool window.
Right-click and chooseGenerate Tests with UnitTestBot or pressAlt+Shift+U.
- Alternatively, in the Editor, place the caret at the required class or method.
PressAlt+Shift+U or right-click and chooseGenerate >Tests with UnitTestBot.
- In theGenerate Tests with UnitTestBot window, tick the classes or methods you'd like to cover with tests andpressGenerate Tests orGenerate and Run.
Now you can see the resulting test class or classes in the Editor.
Note: if you re-generate the test for a given class or method, it will erase the previously generated test forthis unit. To prevent this, rename or move the tests you want to keep. For more information, seeTest sources root.
- Check system requirements
- Install or update plugin
- Generate tests with default configuration
- Fine-tune test generation
- Get use of test results
(redirect to/docs inmain repo)
- Contributing guide
- Developer guide
- Naming and labeling conventions
- Interprocess debugging
- Interprocess logging
- UnitTestBot overall architecture
- Android Studio support
- Assumption mechanism
- Choosing language-specific IDE
- Code generation and rendering
- Fuzzing Platform (FP) Design
- Instrumented process API: handling errors and results
- UnitTestBot JavaScript plugin setup
- Night statistics monitoring
- RD for UnitTestBot
- Sandboxing
- UnitTestBot settings
- Speculative field non-nullability assumptions
- Symbolic analysis of static initializers
- Summarization module
- Taint analysis
- UnitTestBot decomposition
- UtUtils class
- UnitTestBot Family changes