Generate test cases completely offline with TestGenie's powerful local AI model. No internet required, 100% private, fast, and accurate.
Note: We are still working on the model, and releasing updates with new models and more options! Please keep checking this space for latest info!
TestGenie's offline mode allows you to generate comprehensive test cases for your code without requiring an internet connection. This feature is powered by a local AI model that runs entirely on your machine, ensuring:
Pro Feature: Offline mode is available exclusively for TestGenie Pro users. Upgrade to Pro to unlock this powerful feature.
Note: The AI model requires significant computational resources. Performance will vary based on your hardware specifications.
pip install test-genie
test-genie offline install
This command will download the AI model (~2 GB) and install all required dependencies.
test-genie offline info
This will show you the model information and installation status.
Success! Once installation is complete, you can start generating test cases offline.
test-genie offline generate path/to/your/file.py
This will generate test cases for the specified Python file using the offline model.
test-genie offline generate file.py -p 5 -n 3
Generate 5 positive test cases and 3 negative test cases.
.py files
pytest, unittest
.cpp files
Google Test (GTests), Unit tests
.java files
JUnit
Generate test cases for a specific file
Install the offline model and dependencies
Display model information and system status
Remove the offline model and free up space
test-genie offline generate calculator.py -p 4 -n 2
test-genie offline generate vector.cpp -p 3 -n 1
If the model download fails or is interrupted:
If test generation is slow:
If you encounter memory errors:
If you get "file type not supported" error:
A: The offline model requires approximately 2 GB of disk space. This includes the AI model file and all necessary dependencies.
A: Yes! Once installed, offline mode works completely without internet. You only need internet for the initial installation and model download.
A: Offline mode uses a smaller, optimized model that runs locally. It's faster for simple cases but may be less sophisticated than our cloud-based models. It's perfect for privacy-sensitive environments and when you need guaranteed availability.
A: Yes, you can run test-genie offline uninstall
to remove the model and free up disk space. You can reinstall it anytime.
A: Currently, offline mode supports Python (.py), C++ (.cpp, .c), and Java (.java) files. We're working on adding support for more languages.
A: No, offline mode is a Pro feature. You need an active TestGenie Pro subscription to use offline mode.
A: You can contact our support team through the contact page or check our documentation for more detailed troubleshooting steps.