RobloxAPI / testfiles

A database of files for testing implementations of various Roblox file formats
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Roblox Test Files

The testfiles repository contains a database of files for testing implementations of various Roblox file formats.

Philosophy

Enter: golden files

Key points:

In general, the content of a golden file should be line-based to interact better with the diffing of version control systems. One unit of information per line. Other than that, the content is fairly free-form; it should focus on being parsable by human eyeballs.

JSON is used as the format for golden files. The specification provides a detailed explanation.

Structure

Spec directory

Descriptions for known file formats are contained within the spec directory. Also contained are descriptions of golden file formats.

Data directory

All test files are contained within the data directory. Files within this directory are structured according the following rules:

Sibling files form a group when their names match. The part of the name used to match depends on the type:

For example, the following files would be grouped together:

Source directory

The src directory contains the sources for commands that produce golden files for various implementations of supported formats.

Tools directory

The tools directory contains tools that aid in the production of test files.

Testing

To test an implementation against the database, a program must be written. The program should satisfy the following properties:

Licensing

Files within the testfiles repository, including input files, golden files, and documents, unless noted otherwise, are licensed to the testfiles contributors under the CC-BY-SA-4.0 license.