# Test suites as AI training data: why tests verify code

Canonical: https://refer.sourcex.si/data-types/test-case-data-ai-training
Last updated: 2026-10-20

Test suites can be licensed as AI training data when a software company owns them and holds the rights. Tests linked to the changes and bug fixes they verify give AI developers a pass-or-fail check on generated code. A fractional CTO can introduce qualifying companies to SourceX, which handles inventory, review and delivery.

## Why do test suites make code verifiable for AI training?

A test case is an objective check: a change either passes it or it does not. Test suites linked to the code changes and bug fixes they verify let an AI developer ask whether a model-generated change actually works, instead of guessing from how the code reads. That pass-or-fail signal is scarce in public data and common inside software companies.

For a fractional chief technology officer (CTO), this is an everyday asset. You know which clients have a real test culture, which kept manual test cases in a management tool for years, and which are about to retire that tool.

This page covers what test data a software company holds, how to tell a strong suite from a weak one, and how to raise it before introducing the company to SourceX.

## What counts as test data?

| Record | What it contains | What makes it useful |
|---|---|---|
| Automated test code | Unit, integration and end-to-end tests in the repository | Executable checks tied to behavior |
| Manual test cases | Steps, expected results and preconditions in a test tool | Human-written specifications of behavior |
| Test run history | Which tests ran against which build and the results | Pass-fail outcomes over time |
| Defect reports | Bug description, reproduction steps and fix reference | Failure cases linked to a resolution |
| Regression selections | Which tests were chosen for a release | Judgment about risk |
| Flaky test records | Tests that fail intermittently and the investigation | Noise handling and diagnosis |
| Traceability links | Requirement to test to change to defect | The chain that connects intent to evidence |

A suite whose tests reference tickets and commits is worth more than a pile of scripts. The linking is what lets a buyer connect a fix to the test that proves it. History also matters: see the page on [why git history matters more than a snapshot](/guides/does-git-history-matter) for how the repository side fits.

## Where does the data live?

Common locations include:

- The source repository, in test directories.
- A continuous integration system with build and test logs.
- A test management tool holding manual cases, plans and run results.
- An issue tracker with defects and links to tests and commits.
- Spreadsheets used by QA teams before a tool was adopted.
- Release notes and sign-off records.

Retention is the issue: CI systems often purge old logs, and test management tools may be retired. Ask how far back results go and who owns exports. The company's own vendor documentation states what export options exist; this page makes no claim about any particular tool.

## The verifiability screen

Use these questions in a first conversation. They ask about structure, not contents.

- [ ] **Linkage:** do tests, defects and code changes reference each other by ticket or commit?
- [ ] **History:** are results kept for several years, or only the last few builds?
- [ ] **Coverage:** is there a meaningful number of tests in the areas that matter, not just a smoke suite?
- [ ] **Outcome labels:** are defects marked fixed, rejected or deferred, with reasons?
- [ ] **Ownership:** did employees write the tests under assignment terms, and are they free of client-owned code?
- [ ] **Access:** can someone export test cases and run history?

A company with 50+ full-time employees at peak (contractors excluded), several years of documented operations and an authorized sponsor, which passes most of these, is a candidate. Start with the [company fit checker](/tools/company-fit-checker), a preliminary non-binding screen.

## When should a fractional CTO raise it?

| Moment | Why it works | What to ask |
|---|---|---|
| Test tool renewal or retirement | The archive is about to lose its home | Will the case library be exported before the license ends? |
| CI platform change | Old build logs are often not migrated | Do results from past years move or vanish? |
| QA team restructuring | Knowledge is leaving with people | Where do the manual cases live, and who owns them? |
| Quality or compliance audit | Evidence of testing is collected | Which records prove what was tested over time? |
| Technical due diligence | Buyers or lenders review engineering practice | What does the test history say about release discipline? |
| Platform rewrite | Old tests describe old behavior | Is the legacy suite archived with its history? |

Record types in neighboring parts of the stack share this shape. Compare [architecture decision records](/data-types/architecture-decision-records), which capture design reasoning where tests capture verification.

## What rights and privacy points apply?

Tests can carry more than logic:

- Test fixtures sometimes contain real customer data copied from production; those need removal or redaction.
- Manual cases may quote customer names or contract details.
- Tests for client-owned software, written by an agency, may belong to the client.
- Third-party test libraries and open-source components carry their own terms.
- Credentials and tokens occasionally appear in test configuration.

Redaction and de-identification requirements are agreed with the company before any work begins. The [PII redaction matrix](/resources/pii-redaction) lists typical treatments by record type. If the company mainly writes tests for clients' systems without consent, treat it as a red flag.

## How the introduction works

1. Register and pass your referral link to the founder or VP of engineering, or file basic fit details through the referral form.
2. SourceX screens size, history, breadth of systems and rights.
3. The company lists its repositories, CI, test tool and tracker with years of coverage; the [data inventory builder](/tools/data-inventory-builder) can help organize that.
4. Price and terms are agreed before any buyer sees the opportunity; nothing binds until the company signs.
5. Buyers typically respond within about two weeks of the company being deal-ready.
6. After signature, fixtures and credentials are cleaned under the agreed redaction rules and the data is delivered; the company is usually paid once.
7. A reward becomes payable after SourceX has paid the referred company under its signed agreement and the payout conditions in the program terms are met, including finance approval and your tax and payment details.

You never open a test file or run an export. For a related support-side record, see [KCS article histories](/data-types/knowledge-centered-service).

## What to say to a software founder

> "Your test cases and the bug fixes they check form a record of how you know the product works. Some software companies license that kind of verification history to SourceX for a one-time payment, keeping ownership and approving scope and price. Do your test results go back more than a few builds?"

## How rewards work

Partners earn the greater of $50,000 plus 5% and 15% of the compensation SourceX actually pays the company you refer, with no cap. A reward becomes payable after SourceX has paid the referred company under its signed agreement and the payout conditions in the program terms are met, including finance approval and your tax and payment details. The reward is calculated on the actual supplier payout and is never deducted from what the company receives. Check your client agreements and any disclosure rules before registering; read about the role at [referral opportunities for fractional CTOs](/for/fractional-ctos).

## When it is not a fit

Pass when tests exist only as a few scripts without history, when the archive is wiped after each release, when the code and tests belong to clients, or when the company is below the size baseline. A client with deep CI logs but no linked tracker may still qualify through other systems; it simply scores lower on this screen.

## Next step

Ask one software client how many years of test results could be exported tomorrow. If the answer is several, [register as a partner](/register) and introduce them, or have the sponsor apply at [sourcex.si/apply](https://sourcex.si/apply).
