Skip to content

feat: Node test fixtures#2545

Draft
trisyoungs wants to merge 6 commits into
dissolve2/clean-up-testing-frameworkfrom
dissolve2/node-test-fixtures
Draft

feat: Node test fixtures#2545
trisyoungs wants to merge 6 commits into
dissolve2/clean-up-testing-frameworkfrom
dissolve2/node-test-fixtures

Conversation

@trisyoungs

Copy link
Copy Markdown
Member

This implements a sort of fixture-based approach to more full-range testing of Graphs, particularly those involving analysis nodes calculating a specific result. The idea is to define the setup, run, and test functions individually, and then let the fixture setup, run, test. This automation then allows serialisation round-trip testing for free, as well as restart-data reading / testing when we are ready.

@trisyoungs trisyoungs force-pushed the dissolve2/node-test-fixtures branch from 87b4480 to 1506873 Compare June 30, 2026 12:29
Comment thread tests/testGraphFixture.h
// Deserialised graph
DissolveGraph deserialisedGraph_;
// Current graph target
OptionalReferenceWrapper<DissolveGraph> currentGraph_;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps go ahead and make this DissolveGraph* ? I know that eventually removing OptionalReferenceWrapper is on the RoadMap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants