tests

command
v0.0.0-...-3061286 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

README

TurboScript Tests

This directory contains integration tests, end-to-end tests, and utility test files for TurboScript.

Test Files

  • build_test.go - Tests for build and compilation functionality
  • e2e_test.go - End-to-end tests for the complete application workflow
  • integration_test.go - Integration tests for component interactions
  • plugin_test.go - Tests for the plugin system functionality
  • turboplugin_fix_test.go - Specific tests for turboPlugin functionality fixes
  • test_mime.go - Utility for testing MIME type detection

Running Tests

To run all tests in this directory:

go test ./internal/tests/...

To run a specific test file:

go test ./internal/tests/e2e_test.go

To run tests with verbose output:

go test -v ./internal/tests/...

Test Organization

Tests are organized by functionality:

  • Unit tests - Located alongside the code they test (e.g., internal/server/server_test.go)
  • Integration tests - Located in this directory
  • End-to-end tests - Located in this directory
  • Component tests - Located alongside their respective components

Coverage

To generate test coverage reports:

go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out

Documentation

Overview

Package main provides MIME type testing utilities for TurboScript.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL