OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

test

Run tests defined in contract specs

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @lssm/core
  • Tags: cli, test
  • File: packages/bundles/workspace/src/contracts/operations/test.operation.ts
  • field.key.label
    test
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    test
    field.description.label

    Run tests defined in contract specs

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @lssm/core
  • Tags: cli, test
  • File: packages/bundles/workspace/src/contracts/operations/test.operation.ts
  • field.tags.label
    cli,test
    field.owners.label
    @lssm/core
    field.stability.label
    stable

    Run tests defined in contract specs

    Goal

    Execute tests defined in specs

    Context

    Run via CLI

    Source Definition

    export const testOperation = defineCommand({
    	meta: {
    		key: 'test',
    		title: 'Test Specs',
    		description: 'Run tests defined in contract specs',
    		version: '1.0.0',
    		stability: 'stable',
    		tags: ['cli', 'test'],
    		goal: 'Execute tests defined in specs',
    		context: 'Run via CLI',
    		owners: ['@lssm/core'],
    	},
    	policy: {
    		auth: 'anonymous',
    	},
    	io: {
    		input: fromZod(
    			z.object({
    				specFile: z
    					.string()
    					.describe('Path to the test spec file (or glob pattern)'),
    				registry: z
    					.string()
    					.optional()
    					.describe('Path to the test registry (optional)'),
    				json: z.boolean().optional().describe('Output results as JSON'),
    			})
    		),
    		output: fromZod(
    			z.object({
    				passed: z.boolean(),
    				results: z.array(z.any()),
    			})
    		),
    	},
    });