Skip to content

[Mass] Add unit test framework and tests for Mass components - #5920

Merged
fredroy merged 6 commits into
sofa-framework:masterfrom
alxbilger:testmass
Mar 22, 2026
Merged

fredroy merged 6 commits into
sofa-framework:masterfrom
alxbilger:testmass

Conversation

@alxbilger

@alxbilger alxbilger commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Introduction of a generic test for masses. It checks consistency between the different methods of a BaseMass:

  • addMDx
  • getKineticEnergy
  • accFromF
  • buildMassMatrix
  • addMToMatrix

It has been applied to test UniformMass and MeshMatrixMass.

[with-all-tests]


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@alxbilger alxbilger added pr: enhancement About a possible enhancement pr: status to review To notify reviewers to review this pull-request labels Feb 2, 2026
@alxbilger

alxbilger commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor Author

The failing unit tests with the lumped mass should be fixed with #5925

@alxbilger alxbilger added the pr: test PR adding test(s) in SOFA label Feb 3, 2026
@fredroy

fredroy commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

[ci-build][with-all-tests]

@th-skam th-skam added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Feb 19, 2026
@alxbilger alxbilger added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Mar 3, 2026
@alxbilger

Copy link
Copy Markdown
Contributor Author

[ci-build][with-all-tests]

@fredroy
fredroy requested a review from hugtalbot March 19, 2026 01:48
@fredroy fredroy added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Mar 19, 2026
@fredroy
fredroy merged commit bcafb14 into sofa-framework:master Mar 22, 2026
13 checks passed
@hugtalbot hugtalbot added this to the v26.06 milestone May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: enhancement About a possible enhancement pr: status ready Approved a pull-request, ready to be squashed pr: test PR adding test(s) in SOFA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants