Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions conformance-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Conformance Tests

This subproject contains integration tests that verify the correct behavior of both the **compiler** and **runtime** components working together.

## Purpose

These tests:
- Compile `.ink` source files using the `Compiler`
- Execute the compiled stories using the `Runtime` (Story class)
- Verify the output matches expected behavior

## Test Coverage

The tests cover various Ink language features including:
- Basic text output
- Choices and branching
- Conditionals and sequences
- Diverts and knots
- Functions (internal and external)
- Gathers and stitches
- Glue
- Lists
- Tags
- Threads and multi-flow
- Tunnels
- Variables
- And more...

## Running Tests

```bash
# Run all conformance tests
./gradlew :conformance-tests:test

# Run tests for the entire project
./gradlew test
```

## Test Structure

- `src/test/java/` - JUnit test classes
- `src/test/resources/inkfiles/` - `.ink` source files and their expected JSON output
4 changes: 4 additions & 0 deletions conformance-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies {
testImplementation project(':runtime')
testImplementation project(':compiler')
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ rootProject.name = 'blade-ink-java'
include 'runtime'
include 'compiler'
include 'inklecate'
include 'conformance-tests'