Skip to content

Test harness#2350

Closed
celsobonutti wants to merge 6 commits intoelm:masterfrom
celsobonutti:test-harness
Closed

Test harness#2350
celsobonutti wants to merge 6 commits intoelm:masterfrom
celsobonutti:test-harness

Conversation

@celsobonutti
Copy link

@celsobonutti celsobonutti commented Feb 27, 2026

No description provided.

celsobonutti and others added 6 commits February 27, 2026 15:08
Lays out a two-layer testing approach (parse tests + compile tests)
to replace the test suite removed in e2008b5, updated for 0.19.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
11-task plan covering cabal stanza, test runner, parse tests,
compile tests, and all test .elm files.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Add 6 parse-good .elm files covering literals, records, pattern matching,
functions, types, and comments. Add 4 parse-bad .elm files covering
unclosed strings, bad indentation, garbage tokens, and invalid operators.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Add compile-good project with elm.json and 3 source files covering basic
expressions, pattern matching, and type annotations. Add compile-bad project
with elm.json and 3 source files covering infinite types, incomplete patterns,
and type mismatches.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Add Test-Suite elm-tests to elm.cabal with all required compiler modules
and dependencies. Create Test.hs (main runner), Test/Parse.hs (parse
tests using Parse.Module.fromByteString), and Test/Compile.hs (stub).
All 10 parse tests pass (6 parse-good, 4 parse-bad).

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Shells out to the built elm binary for full pipeline testing.
Uses System.Process with cwd to run elm make from the correct
project directory. All 16 tests pass (10 parse + 6 compile).

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@github-actions
Copy link

Thanks for suggesting these code changes. To set expectations:

  • Pull requests are reviewed in batches, so it can take some time to get a response.
  • Smaller pull requests are easier to review. To fix nine typos, nine specific issues will always go faster than one big one. Learn why here.
  • Reviewers may not know as much as you about certain situations, so add links to supporting evidence for important claims, especially regarding standards for CSS, HTTP, URI, etc.

Finally, please be patient with the core team. They are trying their best with limited resources.

@celsobonutti
Copy link
Author

Sorry, meant to create in my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant