MOBIUSI INCEach sample pairs target source code with repository context, including the target file path, relevant module interfaces, existing test conventions, repository information, and generated unit tests; programming language and test framework are also identified. The examples help models learn to account for dependencies, project configuration, and established testing practices when writing tests for real codebases. The dataset is suited to code supervised fine-tuning, developer tool training, and evaluation of unit test generation.
| Field | Type | Description |
|---|---|---|
| file_name | string | File name |
| target_code | string | The source code under test, written in the repository's programming language. |
| test_framework | string | The test framework used by the generated unit tests, inferred from repository context and existing test conventions. |
| target_file_path | string | The repository-relative path to the target source file. |
| repository_context | string | Additional repository information needed to understand dependencies, configuration, and test setup. |
| generated_test_code | string | Unit test code generated for the provided target code and repository context. |
| programming_language | string | The language used by the target code and generated unit tests. |
| existing_test_conventions | string | Project-specific testing patterns, assertions, fixtures, and framework conventions. |
| related_module_interfaces | string | Relevant dependency declarations, module interfaces, and API signatures required to understand the target code. |
| Authorization Type | Proprietary - Commercial AI Training License (No Redistribution) |
| Commercial Use | Requires exclusive subscription or authorization contract (monthly or per-invocation charging) |
| Privacy and Anonymization | No PII, no real company names, simulated scenarios follow industry standards |
| Compliance System | Compliant with China's Data Security Law / EU GDPR / supports enterprise data access logs |

Post a request and let data providers reach out to you.
@dataset{Mobiusi2026,
title={Repository-Context-Aware Unit Test Generation Dataset},
author={MOBIUSI INC},
year={2026},
url={https://www.mobiusi.com/datasets/87d9b26a144f49de6ac3e315911eb47d?dataset_task_cate_id=8},
urldate={2026-10-22},
keywords={unit test generation dataset,code generation training data,repository context code data,code SFT dataset,automated testing data,developer tools dataset,test code generation,software testing dataset},
version={1.0}
}Using this in research? Please cite us.