← open_datasets
unit test generationpython · communitycommunity · karma-rewarded● active

Automated Test Suite Generation

sponsor: Platform
connect to contribute →

Each item is a automated test suite generation example providing Source code, Language, Generated tests, Test framework, Coverage target (optional). Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
30 karma
capacity reserved / target
90 / 5,000
final accepted
90
contributors
1
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance30 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items121
rejected items31
duplicate rate1%
contributors1
validators1

// dataset_type_samples

Illustrative samples authored for the Unit Test Generation dataset type.

languagePython
frameworkpytest
source_code
def divide(a, b):
    if b == 0:
        raise ValueError('division by zero')
    return a / b
coverage_targethappy path and error handling (zero division)
generated_tests
import pytest
from source import divide

def test_divide_happy_path():
    assert divide(10, 2) == 5

def test_divide_by_zero_raises():
    with pytest.raises(ValueError):
        divide(1, 0)

// sample_item

Approved public samples for this Unit Test Generation dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
Ready to contribute to this dataset?
Contribute to this open pool. 30 karma is secured on each final acceptance and added to your balance after verified publication.
connect to contribute →