Testing Files Generator

Presets

Empty and minimal

Does a file that is valid and as small as the format allows get through?

The empty-and-minimal preset builds a whole set of real test files for this question in one command, and a manifest.json beside them saying how your system should react to each file. Everything below is read from the program, at the defaults of this version.

What does it usually find?

What is in the set?

At its defaults, as tfg preset show empty-and-minimal reports it:

Files28
Targets in its recipe28
Total size32 667 B
Formatsavif, bmp, csv, docx, gif, html, ico, jpg, json, jxl, log, md, pdf, png, pptx, svg, targz, tiff, toml, txt, wav, webp, xlsx, xml, yaml, zip

And what the manifest of that set expects from your system:

ExpectedMeaningFiles
acceptYour system should take the file.26
unspecifiedIt depends on the rules of your system. You decide, then check that what happens is what you meant.2

What can you change?

SettingTakesDefaultWhat it does
--formats format ids separated by commas, or all all Which formats the set is built from. Leave it at all for every format this build has, or name the ones your system accepts.

How do you run it?

See what the set would cost, build it, or take its recipe to edit:

tfg preset show empty-and-minimal
tfg generate --preset empty-and-minimal --out ./empty-and-minimal
tfg preset eject empty-and-minimal > empty-and-minimal.yaml

Or build on it in a recipe of your own, next to your tests:

version: 1
extends: preset:empty-and-minimal