Skip to content

Add model-element unit tests to improve core coverage#27

Merged
samatstariongroup merged 1 commit intodevelopmentfrom
codex/improve-code-coverage-and-run-tests
Feb 28, 2026
Merged

Add model-element unit tests to improve core coverage#27
samatstariongroup merged 1 commit intodevelopmentfrom
codex/improve-code-coverage-and-run-tests

Conversation

@samatstariongroup
Copy link
Member

Motivation

  • Increase automated test coverage for core model/resource types that were previously untested, specifically covering Diagnostic, EFactory, and EOperation behaviors.

Description

  • Add ECoreNetto.Tests/ModelElement/OperationAndFactoryTestFixture.cs containing tests for Diagnostic constructor property mapping and EFactory construction behavior.
  • Add tests that validate EOperation.DeserializeChildNode null-argument guard and deserialization of an <eParameters/> child into the EParameters collection.
  • Add a test that verifies EOperation.Identifier composition when an operation is attached to an EClass and include a small TestableEOperation helper to expose protected behavior for unit testing.

Testing

  • Ran dotnet test ECoreNetto.Tests/ECoreNetto.Tests.csproj --nologo and all tests passed (Passed: 17, Failed: 0).
  • Ran coverage collection with dotnet test ECoreNetto.Tests/ECoreNetto.Tests.csproj --nologo /p:CollectCoverage=true /p:CoverletOutputFormat=json and generated coverage.json, reporting ECoreNetto at 77.51% line coverage.
  • Ran dotnet test EcoreNetto.sln --nologo to validate the full solution; all test projects completed successfully in the environment used.

Codex Task

@samatstariongroup samatstariongroup merged commit 0809c2d into development Feb 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant