Sample files and test fixtures for automated testing

Small, deterministic fixtures for Playwright, Selenium, Cypress and unit tests.

Automated tests need fixtures that never change. A file that differs between runs makes failures impossible to reproduce, and a file fetched from the network on every run makes the suite slow and fragile.

Download the samples you need once, commit them next to your tests, and refer to them by path. The small sizes exist for this purpose: a 1 KB or 10 KB file adds almost nothing to a repository.

Recommended files

FileSizeWhy this oneDownload
10 KB PDF samplesample-pdf-10kb.pdf10 KB10,240 bytesSmall valid PDF for upload testsDownload PDF
1 KB PNG samplesample-png-1kb.png1 KB1,024 bytesTiny valid imageDownload PNG
10 KB CSV samplesample-csv-10kb.csv10 KB10,240 bytesAbout a hundred rows for import testsDownload CSV
1 KB JSON samplesample-json-1kb.json1 KB1,024 bytesMinimal structured fixtureDownload JSON
One-pixel PNG (1 × 1)sample-pixel-1x1.png69 B69 bytesSmallest possible imageDownload PNG

Checklist

  1. Vendor your fixtures

    Copy files into the repository, for example under tests/fixtures. Do not download them during the test run.

  2. Prefer the smallest file that proves the point

    Use 1 KB and 10 KB samples for behaviour tests and keep large files for a separate, slower suite.

  3. Assert on content, not only on success

    After an upload, check the stored size or checksum rather than just the success message.

  4. Generate very large files at run time

    For sizes above a few megabytes, create the file in a setup step instead of committing it.

Guides

Related use cases

Frequently asked questions

Can my tests download fixtures from this site at run time?
They can, but they should not. A test that depends on a third-party site fails when the network does. Commit the files, or cache them in your CI system.
How do I upload a file in Playwright?
Call setInputFiles on the file input locator with the path to the fixture. The Playwright guide on this site has complete examples.

Test plan architecture and assertion matrix for sample files and test fixtures for automated testing

A thorough automated testing workflow separates positive functional verification (confirming well-formed inputs succeed and preserve their SHA-256 checksum) from negative boundary verification (confirming oversized, truncated, or mislabelled inputs fail with structured diagnostic codes).

Test case IDScenario in automated testingInput fixtureExpected system outcome
TC-AUTO-01Baseline small payload acceptance1 KB – 100 KB valid fixture from FormatsHTTP 200/201; stored byte count and SHA-256 match /checksums.txt
TC-AUTO-02Gateway / reverse-proxy ceiling check1 MB, 10 MB, and 20 MB sized fixtures from SizesExact threshold enforced; oversize payload returns HTTP 413 Payload Too Large
TC-AUTO-03Extension vs. magic-byte mismatchwrong-extension-png-as-jpg.jpg from Broken FilesValidator detects 89 50 4E 47 PNG header and rejects spoofed .jpg extension
TC-AUTO-04Truncated stream / unexpected EOFTruncated PDF or JPEG from Broken FilesParser catches missing trailer/EOI marker and returns HTTP 422 without leaking stack traces

Automating automated testing in CI/CD pipelines

To keep automated runs deterministic and fast, commit your small sub-100 KB fixtures directly to your repository and synthesize larger 10 MB to 1 GB stress fixtures on demand using our in-browser generator or the reproducible local commands on Methodology. When testing tabular or relational data pipelines during automated testing, pair binary container checks with our 100-row and 1,000-row synthetic datasets so you can assert exact row counts and column aggregations after ingestion.