Add unit tests for FEMO core modules#3
Conversation
|
@copilot okay. create unit tests for all 12 tests. do not change the original code. only do addition to the tests directory. |
Implemented in commit |
|
@copilot add doc strings to the unit tests |
Addressed in commit |
|
@copilot put the unit tests unter tests/unit/ |
Addressed in commit |
|
@copilot create a functional test to run the example optimization problem under examples/. Lay out the implementation plan first. do not make any changes. |
|
@copilot rank the examples from easy to hard |
Easy → hard (heuristic by coupling, preprocessing, external deps, and runtime):
|
|
@copilot testability-focused ranking only |
|
@copilot show me the PR |
Current PR summary:
Latest commits on this branch:
|
|
@copilot git status |
Working tree is clean (no modified, staged, or untracked files). |
This PR now implements the previously proposed test plan by adding unit tests under
tests/for core FEMO modules, while leaving original source code unchanged.Scope
testsdirectory.femo/feaorfemo/csdl_opt.Implemented test coverage
FEAregistration APIs:add_input,add_state,add_output,add_field_output, and strong BC handling.findNodeIndices,locateDOFs(polar/cartesian handling), andimport_meshassociation-table/return contracts.FEAModel,OutputOperation, andStateOperationcore control/data-flow paths.Execution strategy used
Validation
python -m pytest -q testsOriginal prompt
Created from VS Code.