JanssenProject / JanssenProject/jans
test(agama): add semantic/codegen coverage for the Agama transpiler
- Dominant language
- Java
- Stars
- 648
- Forks
- 174
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 110
Description
**Is your feature request related to a problem? Please describe.**
The Agama transpiler tests currently validate only DSL syntax (valid vs. malformed flows). There is no test asserting
that a successful transpilation produces the expected output — function name, declared inputs, timeout, and generated
JavaScript — so regressions in code generation or header parsing could go unnoticed.
**Describe the solution you'd like**
Add a test that transpiles representative flows and asserts the TranspilationResult: the generated function name, the
parsed Inputs, the parsed Timeout (including its absence), and that the generated code declares the flow function.
Register it in the module's TestNG suite so it runs in CI.
**Describe alternatives you've considered**
Relying on syntax-only tests — rejected: they don't catch code-generation or header-parsing regressions.
**Additional context**
First step of an effort to add the missing runtime/semantic test coverage to the Agama subsystem
Contributor guide
Assessment
This issue has not been assessed yet.