Dataset
Software test suite and test result datasets for AI training
A software test results dataset is the automated test code of a private repository together with the result of every test on every run over months or years: pass, fail or skip, duration, failure message and the commit under test. SourceX sources these to a buyer's spec from established software companies that keep results in CI test reporters and test-analytics tools, as JUnit XML archives, Allure results or similar stores. Per-test history is what separates flaky tests from real regressions. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Automated test code plus one result row per test per run, keyed to the commit under test
- Typical systems
- JUnit XML archives, Allure, ReportPortal, Datadog Test Optimization, BuildPulse, Develocity and CI test reporters
- Typical history
- Months to years where results were archived; raw report files often expire with CI artifacts, so confirm depth
- Modality
- Test source code with structured per-test results; failure messages and stack traces as text
- Delivery formats
- Repository history, result rows as JSONL or Parquet, and original JUnit XML, Allure or TRX files where kept
- Preparation
- Fixtures, seed data and recorded responses screened for real records; secrets, hostnames and names replaced
- Licensing
- Scoped per repository; permitted use agreed per license; third-party and open-source test code identified
- Availability
- Sourced to your spec; history depth and retry detail depend on the partner's tooling and are not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| test_case_id | string | Stable ID for one test, carried across renames and file moves where the repository history shows the move. |
| test_ref | object | The framework's own identifier as reported: file, class or suite, test name and parameter set. |
| test_level | enum | Unit, integration, end-to-end or contract, taken from the directory, tag or runner configuration. |
| execution_id | string | One invocation of the suite on one commit, shared by every test row it produced. |
| commit_under_test | object | Commit SHA and branch the tests ran against, with the last execution on the parent commit. |
| outcome | enum | Passed, failed, errored or skipped on the first try, before any retry is folded in. |
| tries | array | Each attempt of the test inside the execution, with its own outcome and duration in milliseconds. |
| failure | object | Assertion failure or unexpected error, exception type, message and stack trace, with data values screened. |
| flake_evidence | object | Same-commit disagreements, pass-on-retry counts and the resulting label, with who or what assigned it. |
| skip_state | object | Skip or quarantine marker in force, its reason text, the commit that added it and the dates it applied. |
| run_conditions | object | Shard, worker count, test order or random seed, runner OS and language runtime version. |
| introduced_by | object | Commit that added the test, the source files changed in the same commit and any linked bug ticket. |
| fail_to_pass | object | For tests added with a fix: the result on pre-fix source, the result after, and whether a rebuilt environment reproduced the recorded results. |
| fixtures_used | array | Data files, seed scripts, recorded responses and snapshots the test loads, each marked screened and synthetic or not. |
Field names from the table above; values are masked placeholders.
Example record
{
"test_case_id": "tc_4d9a17",
"test_ref": { "framework": "pytest", "file": "tests/billing/test_proration.py",
"node": "TestProration::test_mid_cycle_upgrade[annual-to-monthly]" },
"test_level": "integration",
"execution_id": "ex_20240312_0931_a",
"commit_under_test": { "sha": "c41f7e2", "branch": "main", "parent_last_run": "ex_20240311_1804_c" },
"outcome": "failed",
"tries": [
{ "n": 1, "outcome": "failed", "duration_ms": 30012 },
{ "n": 2, "outcome": "passed", "duration_ms": 842 }
],
"failure": { "kind": "error", "type": "TimeoutError",
"message": "fixture 'ledger_db' did not become ready within 30s",
"trace_file": "traces/ex_20240312_0931_a/tc_4d9a17_1.txt" },
"flake_evidence": { "same_commit_disagreements": 3, "passed_on_retry_last_90_days": 11,
"label": "flaky_setup_timing", "labeled_by": "history_rule_then_human" },
"skip_state": { "skipped": false, "marker": null, "earlier_quarantine": { "from": "2023-08-02", "to": "2023-08-19",
"reason": "waiting on connection pool fix" } },
"run_conditions": { "shard": "3/8", "workers": 4, "order_seed": 190422, "runner_os": "linux", "python": "3.11" },
"introduced_by": { "sha": "8be02d5", "date": "2022-06-14", "also_changed": ["billing/proration.py"],
"linked_ticket": "BUG-2291" },
"fail_to_pass": { "on_parent_source": "failed_on_assertion", "on_fix": "passed",
"rebuilt": { "builds": true, "matches_recorded_results": "1412 of 1415 tests" } },
"fixtures_used": [ { "path": "tests/fixtures/ledger_seed.sql", "screened": true, "synthetic": true } ]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Flaky test detection and triage
Labeled histories train a model to tell, from a failure and its past, whether to rerun, quarantine or look at the change.
Verifiable coding tasks
Verified fail-to-pass pairs with a rebuilt environment give tasks that grade a patch by running tests, not by comparing text.
Test generation
Tests that were written to catch a specific bug, next to the fix, show what a useful test asserts.
Test selection for a change
A record of which tests failed after which files changed supports choosing the tests worth running first.
Failure diagnosis
Assertion messages and stack traces joined to the commit that resolved them train a model to move from symptom to cause.
Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents
What makes this data valuable
Per-attempt outcomes
Retries inside a job are stored as separate tries, not collapsed into a final pass.
Repeat runs on one commit
Several executions of the same commit exist, which is the direct evidence of flakiness.
Stable test identity
A test keeps one ID through renames, moves and changed parameter names.
Every row keyed to a commit
Each result names a SHA that resolves in the delivered repository history.
Stated reproduction rate
The share of recorded results a rebuilt environment reproduces is given per sampled commit.
Skips recorded
Skipped and quarantined tests appear as rows with reasons, not as gaps.
Process
Software test results
Telling flaky tests from regressions
One failed test row does not say whether the code was wrong. History does. A test that passes and fails on the same commit is flaky by definition, because nothing in the code changed between the two results. A test that passed on the parent commit, fails on every run of the next one and passes again after a later change to the code it covers is a regression. Neither pattern is visible in a single run. A dataset of failures without that separation labels correct code as broken, and a model trained on it learns to patch code that needed no patch, or to treat every failure as noise.
The evidence is often erased before it is stored. Retry features such as Surefire's rerun option, pytest rerun plugins, Jest's retry setting, Playwright retries and Bazel's flaky test attempts run a failed test again inside the same job. Some reporters keep the earlier attempt: Surefire writes a flakyFailure element into its XML and Playwright reports the test as flaky. Others record only the final pass. A suite with retries on and final outcomes only looks stable and is not. JUnit XML is also a convention with several producers, not one specification. Writers differ on failure against error, on how a skip is written and on which attributes exist. In these files a test is identified by class name plus test name, and parameterized tests put the parameter values in the name, so a renamed parameter starts a new history.
Flaky causes leave patterns that only run conditions reveal. Order dependence appears as failure under certain shards or random seeds. Timing problems follow slow or loaded runners. Date bugs cluster at month ends and clock changes. Shared state shows up in integration tests whose database was not reset. Quarantine hides all of this, because a test marked skip stops producing results, so the skip marker, its reason and the commit that added it belong in the record.
Counting fail-to-pass pairs
A bug fix that adds a test yields a pair: the test fails on the code before the fix and passes after it. That turns a repository into verifiable tasks, since a model can be given the earlier code and graded by the test. The usual first count is commits that touch both test files and source files. It overstates. Run each new test against the pre-fix source and three results come back. It fails on an assertion, which is a true pair. It already passes, so it was added for coverage. Or it does not compile or import, because it calls something the fix introduced, and a model cannot be graded fairly on a test that names an interface it would have to guess. Ask for the three counts separately.
Each task also needs the tests that passed before and must still pass, so a fix that breaks something else is caught. The recorded history supplies that list directly: every test that passed in the parent commit's run. Tests labeled flaky are removed from both lists first.
All of this assumes an old commit still builds. Dependencies declared without a lockfile resolve to newer releases, packages are withdrawn, private registries and base images disappear, and integration tests expect a database, a queue or an internal service. Fixtures age as well: certificates in test data expire and tests that assume the current year start failing. The run history is the check. Rebuild the environment at a past commit, run the suite and compare each test with what the reporter recorded at the time. Ask for that match rate at several past commits, not only the newest, and decide how far back you need runnable tests as opposed to results as records.
What to check before licensing
- Ask whether results are stored per attempt or as final outcomes only, and which retry features were switched on in the runner and in CI.
- On the sample, count tests with disagreeing outcomes on one commit, ask how the flaky label was assigned, and check some by hand.
- Ask for three fail-to-pass counts: new tests that fail on an assertion against pre-fix source, that already pass, and that do not compile or import.
- Ask for the match rate between recorded results and a rebuilt environment at several past commits, and for the list of services, registries and images the tests need.
- Check that test fixtures and seeded databases contain no real customer records: SQL dumps, JSON fixtures, recorded HTTP responses, snapshot files and screenshots, and the values printed in failure messages.
- Verify that commit SHAs in result rows resolve in the delivered history, and ask how squash merges, renamed tests and parameterized names were handled.
- Confirm the earliest date with per-test rows, whether passing tests were stored or only failures, and whether skipped tests appear.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
How is this different from a CI/CD log dataset?
The unit here is one test on one run, stored as a structured row, not a pipeline step and its log text. A CI log dataset explains why a build went red, including causes outside the tests. This dataset follows each test across every commit, which is what flakiness labels, regression windows and fail-to-pass pairs are built from.
How are flaky tests identified?
From disagreeing results on unchanged code. A test that both passed and failed on one commit, or failed and then passed on a retry, is flaky. Labels come from applying that rule across the whole history, and you should check a sample by hand. Ask for the same-commit disagreements and pass-on-retry counts behind each label, so you can set your own threshold.
What is a fail-to-pass pair?
It is a test that fails on the code before a change and passes after it. Tests added in the same commit as a bug fix are the candidates, and each is confirmed by running it against the pre-fix source. The number of true pairs is lower than the number of candidate commits, so ask for verified counts on your sample.
Can the tests be run?
Often for recent commits, less often for old ones. Running a suite needs the repository, its dependencies as they were and any services the tests call. Unit tests usually rebuild; integration and end-to-end tests may need databases or internal services that are not delivered. Say whether you need runnable tests or result records only, and how far back.
What formats do test results come in?
Mostly JUnit-style XML, which most runners can write directly or through a plugin, along with Allure result files, TRX from .NET, and rows exported from test-analytics tools. Producers disagree on details, so ask for results normalized to one row per test per attempt, with the original files alongside where the partner kept them.
Do test fixtures contain real customer data?
They can, so they are screened before delivery and you should check the sample. Teams sometimes seed test databases from production dumps, record real API responses for replay, or paste a customer record into a regression test for the bug it caused. The method is recorded for each dataset. Failure messages are screened too, because assertion output prints the values compared.
Related datasets
- CI/CD pipeline logs and build failures
Pipeline runs with step logs and exit codes, joined to triggering and fixing commits
- QA test cases and manual test runs
Written test cases with steps and expected results, plus the result of every manual execution by build
- Software engineering histories (issues, PRs, reviews)
Issues linked to commits, pull requests, code review, CI runs, deploys and incidents
- Proprietary codebases with full history
Complete private repositories with full version history, build files, tests and docs
- Bug reports with reproduction steps and verified fixes
Defect records from report to triage outcome, fixing change and QA verification
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.