Skip to content

Commit 2891c57

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 540554f + 95e0fa6 commit 2891c57

28 files changed

+1763
-308
lines changed

src/components/UTGMethods.js

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
import React from "react";
2+
import Link from "@docusaurus/Link";
3+
import useBaseUrl from "@docusaurus/useBaseUrl";
4+
5+
function UTGMethods() {
6+
return (
7+
<div className="mb-8 rounded-lg">
8+
<h2 className="mb-6 text-2xl font-semibold tracking-wide md:text-3xl">
9+
Three Ways to Generate Unit Tests 🚀
10+
</h2>
11+
<p className="mb-6 max-w-4xl text-lg">
12+
Choose the method that best fits your workflow - from automated PR
13+
integration to one-click IDE generation:
14+
</p>
15+
16+
<ul className="grid auto-cols-[300px] grid-flow-col gap-3 lg:gap-5">
17+
<li className="mt-5 flex flex-col space-y-3 text-lg">
18+
<Link
19+
className="text-foreground-light flex-grow text-sm"
20+
to={useBaseUrl(
21+
"/running-keploy/unit-test-generator/#1-pr-agent-latest-"
22+
)}
23+
>
24+
<div className="rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow transition hover:shadow-lg hover:shadow-[color:var(--ifm-card-shadow-color)]">
25+
<div className="flex items-center space-x-4">
26+
<svg
27+
xmlns="http://www.w3.org/2000/svg"
28+
className="mb-4 h-10 w-10 rounded-lg bg-[color:var(--ifm-color)] p-2 text-[color:var(--ifm-background-color)]"
29+
viewBox="0 0 24 24"
30+
width="24"
31+
height="24"
32+
fill="none"
33+
stroke="currentColor"
34+
strokeWidth="2"
35+
strokeLinecap="round"
36+
strokeLinejoin="round"
37+
>
38+
<path d="M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3" />
39+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
40+
<circle cx="8" cy="16" r="6" />
41+
<path d="m6 18 1.5-1.5L9 18l1.5-1.5" />
42+
</svg>
43+
<h2 className="mb-4 text-xl font-semibold">
44+
PR Agent (Latest)
45+
</h2>
46+
</div>
47+
<ul>
48+
<li>
49+
<p className="font">
50+
Automatically generates unit tests when you create pull
51+
requests. Install once, get tests for every PR with changed
52+
files.
53+
</p>
54+
</li>
55+
</ul>
56+
</div>
57+
</Link>
58+
</li>
59+
60+
<li className="mt-5 flex flex-col space-y-3 text-lg">
61+
<Link
62+
className="text-foreground-light flex-grow text-sm"
63+
to={useBaseUrl(
64+
"/running-keploy/unit-test-generator/#2-vs-code-extension-"
65+
)}
66+
>
67+
<div className="rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow transition hover:shadow-lg hover:shadow-[color:var(--ifm-card-shadow-color)]">
68+
<div className="flex items-center space-x-4">
69+
<svg
70+
xmlns="http://www.w3.org/2000/svg"
71+
className="mb-4 h-10 w-10 rounded-lg bg-[color:var(--ifm-color)] p-2 text-[color:var(--ifm-background-color)]"
72+
viewBox="0 0 24 24"
73+
width="24"
74+
height="24"
75+
fill="none"
76+
stroke="currentColor"
77+
strokeWidth="2"
78+
strokeLinecap="round"
79+
strokeLinejoin="round"
80+
>
81+
<rect width="18" height="18" x="3" y="3" rx="2" />
82+
<path d="M9 8l3 3-3 3" />
83+
<path d="m16 16-5 0" />
84+
</svg>
85+
<h2 className="mb-4 text-xl font-semibold">
86+
VS Code Extension
87+
</h2>
88+
</div>
89+
<ul>
90+
<li>
91+
<p className="font">
92+
One-click unit test generation directly in VS Code. Install
93+
the extension and generate tests for your entire project
94+
instantly.
95+
</p>
96+
</li>
97+
</ul>
98+
</div>
99+
</Link>
100+
</li>
101+
102+
<li className="mt-5 flex flex-col space-y-3 text-lg">
103+
<Link
104+
className="text-foreground-light flex-grow text-sm"
105+
to={useBaseUrl(
106+
"/running-keploy/unit-test-generator/#3-command-line-interface-"
107+
)}
108+
>
109+
<div className="rounded-lg bg-[color:var(--ifm-card-background-color)] p-5 shadow transition hover:shadow-lg hover:shadow-[color:var(--ifm-card-shadow-color)]">
110+
<div className="flex items-center space-x-4">
111+
<svg
112+
xmlns="http://www.w3.org/2000/svg"
113+
className="mb-4 h-10 w-10 rounded-lg bg-[color:var(--ifm-color)] p-2 text-[color:var(--ifm-background-color)]"
114+
viewBox="0 0 24 24"
115+
width="24"
116+
height="24"
117+
fill="none"
118+
stroke="currentColor"
119+
strokeWidth="2"
120+
strokeLinecap="round"
121+
strokeLinejoin="round"
122+
>
123+
<polyline points="4 17 10 11 4 5" />
124+
<line x1="12" x2="20" y1="19" y2="19" />
125+
</svg>
126+
<h2 className="mb-4 text-xl font-semibold">
127+
Command Line Interface
128+
</h2>
129+
</div>
130+
<ul>
131+
<li>
132+
<p className="font">
133+
Traditional CLI approach with full control over test
134+
generation. Perfect for CI/CD pipelines and automated
135+
workflows.
136+
</p>
137+
</li>
138+
</ul>
139+
</div>
140+
</Link>
141+
</li>
142+
</ul>
143+
</div>
144+
);
145+
}
146+
147+
export default UTGMethods;

src/css/custom.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,6 @@ div[class^="sidebar_"] .button svg {
233233
.navbar__items--right > :last-child {
234234
@apply pr-5;
235235
}
236-
237-
.navbar__brand {
238-
@apply mb-3;
239-
}
240-
241236
/* Search */
242237

243238
.DocSearch-Button {
431 KB
Loading
674 KB
Loading
613 KB
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
id: ai-models
3+
title: How Keploy Uses AI Models for Testing
4+
sidebar_label: How Keploy Uses AI Models for Testing
5+
description: How Keploy leverages state-of-the-art AI models for next-generation testing automation.
6+
tags:
7+
- AI
8+
- LLM
9+
- unit testing
10+
- Gemini
11+
- GPT-4
12+
---
13+
14+
# 🤖 AI Models at Keploy
15+
16+
Keploy is a vertical testing agent, built to generate high-quality unit tests using the world’s best AI.
17+
18+
We don’t just rely on one model—we harness the strengths of multiple cutting-edge LLMs to give you smarter, more accurate, and more relevant tests.
19+
20+
## 🚀 Multi-Model, Multi-Benefit
21+
22+
- **Gemini 2.5 Pro (Google):** Advanced reasoning, code understanding, and context awareness.
23+
- **GPT-4 Family (OpenAI):** Exceptional language ability, coverage of edge cases, and broad code knowledge.
24+
- **Other Specialized Models:** We continuously evaluate and integrate new AI models to keep raising the bar for testing automation.
25+
26+
By combining different models, Keploy can generate better test cases, filter out weak tests, and cover more scenarios.
27+
28+
## 🏗️ How It Works
29+
30+
- **Best of All Worlds:** For each test file, Keploy routes tasks to different models—letting each one play to its strengths.
31+
- **Quality Over Quantity:** Results are validated and cross-checked, so you get fewer, but stronger and more useful tests.
32+
- **Rapid Updates:** As AI models evolve, Keploy upgrades seamlessly—always keeping you on the leading edge.
33+
34+
## 🌐 Transparency & User Trust
35+
36+
- **No Code Used for Training:** Your code and test data are **never** used to train any external AI model.
37+
38+
- **Model Selection:** We choose models for you automatically, but always with a focus on security, reliability, and test quality.
39+
40+
Want to learn more about how AI powers Keploy? [Contact us](mailto:[email protected])
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
id: api-testing-faq
3+
title: API Testing – Frequently Asked Questions
4+
sidebar_label: FAQs
5+
description: Answers to the most common questions about API testing with Keploy.
6+
tags:
7+
- explanation
8+
- faq
9+
---
10+
11+
# Got Questions? We’ve Got Answers! 🚀
12+
13+
Everything you want to know about API testing with Keploy—straightforward and no fluff.
14+
15+
### 1. What types of API tests can Keploy generate?
16+
17+
Keploy automatically creates:
18+
19+
- **Functional Tests:** CRUD operations, endpoint validation
20+
- **Edge Case Tests:** Invalid payloads, error responses
21+
- **Performance Tests:** Response time checks
22+
- **Security Tests:** Input sanitization, auth validation
23+
- **Dependency Tests:** Mocked external service calls
24+
25+
### 2. How does Keploy handle authentication in API tests?
26+
27+
Keploy supports:
28+
29+
- **Auth Types:** JWT, OAuth2, API Keys, Basic Auth
30+
- **Auto-Renewal:** Token refresh flows
31+
- **Test Isolation:** Separate auth contexts per test
32+
- **Security:** No raw credentials stored—uses environment variables
33+
34+
### 3. What protocols and formats does Keploy support?
35+
36+
| Protocol | Formats | Features |
37+
| ---------- | ---------------- | ----------------- |
38+
| HTTP/HTTPS | JSON, XML | Full support |
39+
| gRPC | Protocol Buffers | Code generation |
40+
| WebSockets | JSON, Binary | Session testing |
41+
| GraphQL | Query/Mutation | Schema validation |
42+
43+
### 4. How does test generation work for stateful APIs?
44+
45+
Keploy handles stateful workflows by:
46+
47+
1. Recording session cookies/headers
48+
2. Detecting data dependencies between calls
49+
3. Generating cleanup steps (teardown)
50+
4. Creating isolated test contexts
51+
52+
**Example:**
53+
`POST /cart → GET /cart → POST /checkout → GET /order/{id}`
54+
55+
Hope this helps you out, if you still have any questions, reach out to us .
56+
57+
import GetSupport from '../concepts/support.md'
58+
59+
<GetSupport/>

versioned_docs/version-2.0.0/keploy-explained/how-keploy-works.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: how-keploy-works
33
title: How Keploy Works?
4-
sidebar_label: How Keploy Works?
4+
sidebar_label: Architecture
55
tags:
66
- explanation
77
- replay-test-case

versioned_docs/version-2.0.0/keploy-explained/faq.md renamed to versioned_docs/version-2.0.0/keploy-explained/integration-testing-faq.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
2-
id: faq
3-
title: Frequently Asked Questions (FAQ)
4-
sidebar_label: FAQ
2+
id: integration-testing-faq
3+
title: Frequently Asked Questions
4+
sidebar_label: FAQs
55
tags:
66
- explanation
77
- faq
88
---
99

10+
# Got Questions? We’ve Got Answers! 🚀
11+
1012
Let's get to the heart of Keploy with some fun Q&A!
1113

1214
### 1. What is Keploy?
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
id: integrations-pr-agent
3+
title: Integrations & Connected Tools
4+
sidebar_label: Integrations & Connected Tools
5+
description: See which platforms Keploy integrates with for automated PR testing.
6+
tags:
7+
- integrations
8+
- github
9+
- PR agent
10+
---
11+
12+
# 🔗 Integrations with SCM
13+
14+
Keploy’s PR Agent helps automate code reviews, testing, and feedback—right where you work.
15+
16+
## ✅ Currently Supported
17+
18+
**GitHub:**
19+
Our PR Agent seamlessly integrates with GitHub repositories for test automation, coverage checks, and intelligent feedback on your pull requests.
20+
21+
## 💡 Need Support for Another Platform?
22+
23+
Want Keploy’s PR Agent on GitLab, Bitbucket, or another platform?
24+
25+
[Reach out to our team!](mailto:[email protected])
26+
27+
We’re always open to feedback and requests as we expand our integration support.
28+
29+
**More integrations are coming soon—stay tuned!**

0 commit comments

Comments
 (0)