|
9 | 9 |
|
10 | 10 | # Got Questions? We’ve Got Answers! 🚀 |
11 | 11 |
|
12 | | -Everything you want to know about Unit testing with Keploy—straightforward and no fluff. |
| 12 | +Let's get to the heart of Keploy Unit Testing with some fun Q&A! |
13 | 13 |
|
14 | 14 | ### 1. What is Keploy's Unit Test Generator (UTG)? |
15 | 15 |
|
16 | | -Keploy's UTG automates the creation of unit tests based on code semantics, enhancing test coverage and reliability. |
| 16 | +Keploy's UTG automatically creates unit tests using code semantics and AI. It helps improve code coverage and catch bugs early, with minimal manual effort. |
17 | 17 |
|
18 | | -### 2. Does Keploy send your private data to any cloud server for test generation? |
| 18 | +### 2. Does Keploy send my code to the cloud? |
19 | 19 |
|
20 | | -No, Keploy does not send any user code to remote systems, except when using the unit test generation feature. When using the UT gen feature, only the source code and the unit test code will be sent to the Large Language Model (LLM) you are using. By default, Keploy uses - litellm to support vast number of LLM backends. Yes, if your organization has its own LLM(a private one), you can use it with Keploy. This ensures that data is not sent to any external systems. |
| 20 | +Only when using the Unit Test Generator feature—and even then, just the necessary code/test context is sent to the LLM (Large Language Model) you're using. You can also plug in your **own private LLM**, keeping everything within your infrastructure. |
21 | 21 |
|
22 | | -### 3. How does Keploy contribute to improving unit test coverage? |
| 22 | +### 3. Is my code or data used to train AI models? |
23 | 23 |
|
24 | | -By providing a zero code platform for automated testing, Keploy empowers developers to scale up their unit test coverage without extensive coding knowledge. This integration enhances testing reports, ultimately boosting confidence in the product's quality. |
| 24 | +No. Never. Keploy does **not** use your code, test cases, or data to train any internal or external AI models. |
25 | 25 |
|
26 | | -### 4. Is Keploy cost-effective for automated unit testing? |
| 26 | +### 4. Which AI models does Keploy support? |
27 | 27 |
|
28 | | -Yes, Keploy optimizes costs by automating repetitive testing tasks and improving overall test efficiency. |
| 28 | +Keploy supports: |
29 | 29 |
|
30 | | -### 5. How does Keploy generate coverage reports? |
| 30 | +- **Gemini 2.5 Pro (Google)** |
| 31 | +- **GPT-4 family (OpenAI)** |
| 32 | +- **Other specialized models** |
31 | 33 |
|
32 | | -Keploy generates detailed Cobertura format reports, offering insights into test effectiveness and code quality. |
| 34 | +We route test generation tasks to the model best suited for each case, and validate results to ensure high-quality tests. |
33 | 35 |
|
34 | | -### 6. Can Keploy handle large codebases efficiently? |
| 36 | +### 5. How does Keploy protect my data? |
35 | 37 |
|
36 | | -Yes, Keploy is designed to handle large codebases efficiently, though processing time may vary based on project size and complexity. |
| 38 | +Keploy follows strict security practices: |
37 | 39 |
|
38 | | -### 7. Which method should I choose for generating unit tests? |
| 40 | +- Data is encrypted in transit and at rest |
| 41 | +- No data is shared with third parties |
| 42 | +- We are compliant with **ISO 27001**, **SOC 2**, **GDPR**, and **HIPAA** |
39 | 43 |
|
40 | | -- **PR Agent**: Best for teams using pull request workflows who want automatic test generation |
41 | | -- **VS Code Extension**: Ideal for individual developers who prefer IDE integration |
| 44 | +### 6. What kind of privacy guarantees does Keploy offer? |
42 | 45 |
|
43 | | -### 8. Do I need an API key to use these two methods? |
| 46 | +- Your code is **never shared** or analyzed for marketing |
| 47 | +- All data is fully encrypted |
| 48 | +- You can delete your data anytime |
| 49 | +- Full transparency in how we handle your information |
44 | 50 |
|
45 | | -The API key is primarily required for the Command Line method. The PR Agent and VS Code Extension may have different authentication mechanisms depending on your setup. |
| 51 | +### 7. Which languages are supported for AI-powered test generation? |
| 52 | + |
| 53 | +- ✅ **Go (Golang)**: Full support for generating, running, and validating tests. |
| 54 | +- 🚀 **JavaScript** support is coming soon. |
| 55 | + |
| 56 | +We only keep tests that pass, build, and increase coverage—everything else is discarded. |
| 57 | + |
| 58 | +### 8. How does Keploy improve unit test coverage? |
| 59 | + |
| 60 | +By automating the hard parts. Keploy: |
| 61 | + |
| 62 | +- Creates tests automatically |
| 63 | +- Targets edge cases |
| 64 | +- Filters flaky or redundant tests |
| 65 | +- Reports coverage via **Cobertura** format |
| 66 | + |
| 67 | +### 9. Is Keploy suitable for large codebases? |
| 68 | + |
| 69 | +Yes! Keploy is built to handle large, complex projects. Processing time may vary based on size, but the output remains optimized. |
| 70 | + |
| 71 | +### 10. Which method should I use to generate tests? |
| 72 | + |
| 73 | +- **PR Agent**: Best for automated test generation on GitHub pull requests. |
| 74 | +- **VS Code Extension**: Ideal for developers who prefer working in their IDE. |
| 75 | +- **CLI Tool**: For those who want more control or integrate into scripts. |
| 76 | + |
| 77 | +### 11. Do I need an API key? |
| 78 | + |
| 79 | +Only for the CLI method. Other tools like PR Agent and VS Code Extension use their own secure auth flows. |
| 80 | + |
| 81 | +### 12. How does Keploy ensure the quality of generated tests? |
| 82 | + |
| 83 | +- We validate every test: it must build, pass, and increase coverage. |
| 84 | +- Tests that don’t add value are automatically removed. |
| 85 | +- We focus on **fewer, stronger** tests—not noise. |
| 86 | + |
| 87 | +### 13. How is Keploy secure and compliant? |
| 88 | + |
| 89 | +Keploy is built on: |
| 90 | + |
| 91 | +- **End-to-end encryption** |
| 92 | +- **Least privilege access** |
| 93 | +- **Redundant infrastructure** |
| 94 | +- Regular **security audits** |
| 95 | + |
| 96 | +We’re committed to keeping your trust. |
| 97 | + |
| 98 | +### 14. What’s next for Keploy? |
| 99 | + |
| 100 | +- Expanding support for more languages |
| 101 | +- More model choices for users |
| 102 | +- Deeper IDE and CI/CD integrations |
46 | 103 |
|
47 | 104 | Hope this helps you out, if you still have any questions, reach out to us . |
48 | 105 |
|
|
0 commit comments