Skip to content

Fix failing Gleam binding acceptance tests #40

@DamianReeves

Description

@DamianReeves

Several Gleam binding acceptance tests are failing and have been marked as @wip (work in progress) to allow CI to pass.

Failing Tests

1. Roundtrip Tests (roundtrip.feature)

  • order_validation scenario - Parser fails on generated function signatures with tupled arguments
  • order_processing scenario - Same parser issue with function signatures

2. CLI Integration Tests (cli.feature)

  • All CLI tests - Require full CLI functionality to be implemented

3. Project Parsing Tests (project.feature)

  • Module name lookup uses full path instead of module name (e.g., looking for 'main' but stored as 'src/main')

4. Workspace Tests (workspace.feature)

  • Workspace parsing not yet implemented

5. Code Generation Tests (codegen.feature)

  • Code generation steps not yet implemented

Root Causes

  1. Roundtrip failures: The Gleam parser generates function signatures with tupled parameters like fn(#(a, b)) but cannot parse them back. The signature should be fn(a, b) or handle tupled parameters correctly.

  2. Project parsing: Module names need to be derived from the file path relative to src/, not include the full path or 'src/' prefix.

  3. CLI/Workspace/Codegen: These features are not yet implemented.

Impact

Blocking full roundtrip testing for complex business logic fixtures.

Related

  • Beads issue: morphir-rust-y0l

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions