You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the scaffolding CLI testing relies heavily on manual processes, which has led to several challenges:
Issues with file/directory generation are only caught through manual testing
The testing process is time-consuming
Edge cases may be missed due to the manual nature of testing
No automated verification of scaffolding output
Current Test Coverage Limitations
While we have integration tests using tryorama that verify the generated hApp's zome functions work as expected, these tests do not verify the CLI's code generation functionality. This has led to issues:
Recent example: The ui directory was completely omitted due to Crane lib filtering out .hbs files, but existing tests didn't catch this
Current tests focus on zome function behavior but don't verify the actual scaffolding output
No automated verification of template processing and file generation
Proposed Solution
Implement automated CLI tests in our CI pipeline to:
Verify correct file/directory generation
Ensure scaffolding creates expected structure
Validate command outputs
Catch regressions early
Scope
Phase 1: Basic CLI Testing
Set up CLI tests
Implement tests for basic file/directory generation
Currently, the scaffolding CLI testing relies heavily on manual processes, which has led to several challenges:
Current Test Coverage Limitations
While we have integration tests using tryorama that verify the generated hApp's zome functions work as expected, these tests do not verify the CLI's code generation functionality. This has led to issues:
Recent example: The
ui
directory was completely omitted due to Crane lib filtering out.hbs
files, but existing tests didn't catch thisCurrent tests focus on zome function behavior but don't verify the actual scaffolding output
No automated verification of template processing and file generation
Proposed Solution
Implement automated CLI tests in our CI pipeline to:
Scope
Phase 1: Basic CLI Testing
Phase 2 (Optional): UI Snapshot Testing
Technical Details
Test Coverage Should Include
Example Test Cases
Success Criteria
The text was updated successfully, but these errors were encountered: