Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Add framework for structuring expected results for Example Models #17

Merged
merged 16 commits into from
May 6, 2025

Conversation

Entenwilli
Copy link
Member

@Entenwilli Entenwilli commented Mar 18, 2025

Note

This PR is still is done. Please review it with the unit-testing branch in DataFlowAnalysis/DataFlowAnalysis#260

This PR introduces a framework for structuring the expected results from the Example Models contained in this repository.
For each model, expected violations are contained in the src of the models bundle.

Additionally, this PR adds several new Example Models from older work (see: https://doi.org/10.1016/j.jss.2021.111138)

@Entenwilli
Copy link
Member Author

@sebinside @Nicolas-Boltz For the next meeting:
We have several models in this repository, both PCM and DFD, that do not have any constraints (or only toy ones).
This could be a pretty good task to familiarize oneself with the Dataflow Analysis and corresponding models

@Nicolas-Boltz
Copy link
Member

Rename casestudies to scenarios. Move everything with constraints in scenarios folder

@Entenwilli Entenwilli force-pushed the integration-testing-framework branch from 68a9751 to 7342f7c Compare April 9, 2025 14:14
@Entenwilli Entenwilli requested review from uuqjz, Nicolas-Boltz and sebinside and removed request for uuqjz April 28, 2025 14:18
@Entenwilli Entenwilli marked this pull request as ready for review April 28, 2025 14:18
private final List<ExpectedCharacteristic> vertexCharacteristics;
private final Map<String, List<ExpectedCharacteristic>> dataCharacteristics;

public ExpectedViolation(int flowGraphIndex, Identifier identifier, List<ExpectedCharacteristic> vertexCharacteristics,
Copy link
Member

Choose a reason for hiding this comment

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

General comment: Is there a need to use an identifier? Could you not use a vertex instead? I do not like having hard coded ids here, as they might not be applicable for models that are dynamically generated, derived or whatever.
Nothing to necessarily change, but to disucss.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just to consider, and document, why this is currently the case:
We cannot just use the vertex here, because we only know the IDs of the violating elements and whether it is calling or returning (only applicable to PCM).

What we could do, however, is allowing Identifiers to be constructed from vertices

@Nicolas-Boltz Nicolas-Boltz merged commit bd2e67f into main May 6, 2025
1 check failed
@Nicolas-Boltz Nicolas-Boltz deleted the integration-testing-framework branch May 6, 2025 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants