Registry / testing / testml-compiler

testml-compiler

JSON →
library0.1.8jsnpmunverified

TestML Compiler converts TestML (.tml) files to JSON for use with TestML runtime libraries. At version 0.1.8, this is an early-stage compiler for the TestML testing language, with no stable release cadence. It differs from alternative testing frameworks by focusing on the Acmeism-inspired TestML language, prioritizing declarative test specifications. Currently supports basic compilation to JSON output. Not suitable for production use.

npm install testml-compiler
INSTALL
IMPORT
SIG · TESTML-COMPILER
T
testml-compiler
testingjavascriptv0.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ const compile = require('testml-compiler')
✗ import compile from 'testml-compiler'
Package is CommonJS only; no ESM support.
compile
✓ const { compile } = require('testml-compiler')
Named export available, but default export is preferred.

Compiles a TestML file to JSON using the default export.

const compile = require('testml-compiler'); const fs = require('fs'); const tml = fs.readFileSync('test.tml', 'utf8'); const result = compile(tml); fs.writeFileSync('test.tml.json', JSON.stringify(result, null, 2));
testml-compiler --version
Debug
Known issues
gotchaNo error handling; compile throws on invalid input
fix
Wrap compile call in try-catch block.
affects: >=0.0.0
gotchaOutput is not validated; may produce malformed JSON for edge cases
fix
Validate the resulting JSON before writing to file.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'testml-compiler'
Missing local install
fix
Run `npm install testml-compiler --save-dev` (or `npm install -g testml-compiler` for CLI).
TypeError: compile is not a function
Incorrect import (e.g., named import on default export)
fix
Use `const compile = require('testml-compiler')` (default) or `const { compile } = require('testml-compiler')` (named).
Upgrade
Version history
0.1.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
testml-compiler — npm install testml-compiler · libregistry