Merged
Conversation
sync function support with remove trailing spaces
… graph and enum imports, removing internal bundling logic, and add a design document for DAG sharing.
…e generation state and extract common constants.
…ectGenerator.generate` instead of individual dependency graph and enum imports.
…Expression generation. Added arithmetic unit tests
…nerated functions into the main object output.
…s to utils and update function generator to use them
…ute guarding and dedicated tests.
Refactor error messages and add argument parsing for local runtime installation.
…n generation by removing enum imports parameter, and consolidate object generation tests.
…r` and enhance function parameter type and docstring generation.
…nputs and outputs, including fully qualified name generation and new unit tests.
…d field annotations, into `RuneToPythonMapper` and update the runtime environment setup.
…ncluding conditional and base model cases.
…and JUnit tests for Multiple conditions.
…tity reuse tests, and improve generator build process for tests.
… venv path resolution and Windows compatibility in test scripts.
…ort, improved validation, and updated reference handling.
…date a test key value.
…, update Rosetta reference metadata
…ging, and update Rosetta test cases.
…specific test classes and update the generator.
…on, and collection literals, and refactor Python generator tests to assert specific expressions.
…ce, object conditions, shortcuts, and `asKey` operations, while refactoring existing enum and object generation tests.
…nce, enums, expressions, operators, collections, and null handling, and update the test runner script.
…ameters, and refactor list extension tests.
…es and update the Python environment setup script.
…neration methods and integrating if-condition block handling directly into alias and operation generation, and update the local runtime path in the setup script.
…constraints to ensure financial accuracy.
… and add a new 'default' binary operator.
…ph population for functions and types. added tests that are disabled until the related isseus are resolved
…and refine bundle generation issues.
…n error/warning handling, accompanied by new unit tests.
…hose features have not been implemented yet
Contributor
Author
|
Some of the tests were failing (they depended on function support which is forthcoming)- these have been fixed. |
minesh-s-patel
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLI Refactoring and Test Suite Reorganization
Summary
This release introduces a significant refactoring of the
PythonCodeGeneratorCLIand a major reorganization of the Python unit test suite. The primary goals are to improve the robustness of the command-line interface, enhance validation feedback, and restructure the testing framework to be more maintainable and aligned with the current capabilities of the generator.Key Changes
1. CLI Refactoring and Enhancement (
PythonCodeGeneratorCLI.java)The CLI has been updated to "v2" with several improvements:
IResourceValidatorto perform full model validation before code generation. The tool now identifies and logs specific validation errors (including line numbers and element context) and skips invalid models.2. Test Suite Reorganization (
test/python_unit_tests/)The Python test suite has been restructured from a flat or ad-hoc layout into a categorized hierarchy:
features/model_structure/: Tests for inheritance, entity reuse, metadata, etc.features/operators/: Tests for arithmetic, comparison, and boolean logic.features/robustness/: Tests for null handling and edge cases.features/directory tree, making it easier to understand the relationship between the DSL source and the test assertions.3. "No-Function" Test Alignment
In alignment with the current generator status (where full function generation is still in progress), many tests were refactored to verify logic using Type Conditions rather than standalone Functions.
4. New Java Unit Tests
Several new JUnit tests were added to the Java codebase to verify specific generation logic:
RosettaSwitchExpressionTest.javaPythonFunctionBasicTest.java(and other targeted function tests)PythonBasicTypeGeneratorTest.javaImpact
Verification Results
src/test/javapassed.