Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,11 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
# JUnit TestCase Generator
|
| 5 |
-
|
| 6 |
-
An RL environment where an agent generates JUnit 5 test cases for Java code.
|
| 7 |
-
|
| 8 |
-
|
| 9 |
---
|
| 10 |
title: Tcgenerator Environment Server
|
| 11 |
emoji: 🖱️
|
|
@@ -19,25 +11,6 @@ tags:
|
|
| 19 |
- openenv
|
| 20 |
---
|
| 21 |
|
| 22 |
-
|
| 23 |
-
## Key Features
|
| 24 |
-
- Executes generated tests in a sandboxed Java subprocess
|
| 25 |
-
- Reward based on:
|
| 26 |
-
- Pass rate (70%)
|
| 27 |
-
- Test quantity (10%)
|
| 28 |
-
- Edge case coverage (10%)
|
| 29 |
-
- Exception handling (10%)
|
| 30 |
-
|
| 31 |
-
## Tasks
|
| 32 |
-
- Calculator (easy)
|
| 33 |
-
- SafeMath (medium)
|
| 34 |
-
- BankAccount (hard)
|
| 35 |
-
|
| 36 |
-
## How it works
|
| 37 |
-
1. Agent generates JUnit test code
|
| 38 |
-
2. Environment compiles + runs tests
|
| 39 |
-
3. Reward computed based on execution results
|
| 40 |
-
|
| 41 |
# Tcgenerator Environment
|
| 42 |
|
| 43 |
A simple test environment that echoes back messages. Perfect for testing the env APIs as well as demonstrating environment usage patterns.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Tcgenerator Environment Server
|
| 3 |
emoji: 🖱️
|
|
|
|
| 11 |
- openenv
|
| 12 |
---
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Tcgenerator Environment
|
| 15 |
|
| 16 |
A simple test environment that echoes back messages. Perfect for testing the env APIs as well as demonstrating environment usage patterns.
|