API Unit Test Repair Dataset

#Unit Test Repair #Test Code Generation #Assertion Updates #Interface Adaptation #API Evolution #Unit Test Maintenance #API Regression Validation #Automated Testing
  • 3565
  • 0.2GB
  • JSON
  • CATL
  • MOBIUSI INCMOBIUSI INC
Updated:2026-11-04

AI Analysis & Value Prop

This dataset pairs API implementation or interface changes with unit tests that fail after those changes and repaired test code aligned with the updated API behavior. Examples cover common repairs such as assertion updates, mock or stub adjustments, and interface adaptation, with a repair category and explanation for each case. The data supports training code models to generate repaired tests and can also be used for regression validation and test maintenance during API evolution.

Dataset Insights

Sample Examples

{}

Technical Specifications

FieldTypeDescription
file_namestringFile name
repair_categorystringA concise classification of the repair, such as an assertion update, mock or stub adjustment, or interface adaptation.
api_change_contextstringA description or diff of API implementation or interface changes relevant to the test failure.
repair_explanationstringA brief explanation of why the original test failed and how the repaired test resolves the issue.
repaired_test_codestringCorrected unit test code updated to match the changed API behavior or interface.
failing_unit_test_codestringThe original unit test code that fails after or in the context of the API change.

Compliance Statement

Authorization TypeProprietary - Commercial AI Training License (No Redistribution)
Commercial UseRequires exclusive subscription or authorization contract (monthly or per-invocation charging)
Privacy and AnonymizationNo PII, no real company names, simulated scenarios follow industry standards
Compliance SystemCompliant with China's Data Security Law / EU GDPR / supports enterprise data access logs

Frequently Asked Questions

What does the dataset contain?
Each example includes API change context, a unit test that fails after the change, repaired test code, a repair category, and an explanation of the repair.
Which tasks is the dataset suitable for?
It supports unit test repair and test code generation, as well as related training and evaluation tasks such as assertion updates, mock or stub adjustments, and interface adaptation.
How can I access the dataset?
Check the dataset provider or listing page for available versions, data formats, and access instructions. Download and delivery options depend on the platform.
Can I use the dataset in commercial projects?
Usage rights depend on the dataset license. Before commercial use or redistribution, review the provider's license, attribution requirements, and the licensing terms for any included code.

Can't find the data you need?

Post a request and let data providers reach out to you.

Get this Dataset

Verified for Enterprise Use

Cite this Work

@dataset{Mobiusi2026,
  title={API Unit Test Repair Dataset},
  author={MOBIUSI INC},
  year={2026},
  url={https://www.mobiusi.com/datasets/76fbb60b10e1cc08a49ef6f4e1b49d3d?dataset_scene_id=19},
  urldate={2026-10-26},
  keywords={API unit test repair,unit test code generation,failing test repair,API interface changes,test case maintenance,code SFT dataset,mock adjustment,regression testing},
  version={1.0}
}

Using this in research? Please cite us.

placeholder
placeholder
placeholder
placeholder
placeholder
placeholder
placeholder

Popular Dataset Searches