Skip to content

Add demo test#256

Merged
Nicolas-Boltz merged 1 commit intomainfrom
demo-test
Apr 15, 2025
Merged

Add demo test#256
Nicolas-Boltz merged 1 commit intomainfrom
demo-test

Conversation

@sebinside
Copy link
Copy Markdown
Member

@sebinside sebinside commented Mar 17, 2025

This PR adds a self-contained demo test and thereby resolves #195. As stated in the javadoc:

/**
 * This class serves as self-contained analysis demonstration using the simple PCM and DFD instances of the online shop.
 * The two initialize methods showcase the analysis setup for PCM and DFD, while the test methods show how to analyze
 * both PCM and DFD models with and without using the ConstraintDSL, and also how to use the QueryDSL. The high degree
 * of code duplication within the tests (e.g., in manual querying) is intended for the sake of self-contained tests.
 */

Open tasks:

  • Play with different models / constraints to produce violations that can be easily understood
  • Fix formatting
  • Discuss whether the test is appropriate and whether anything is missing
  • Add DFD tests
  • Add QueryDSL demonstration
  • Discuss whether the "duplicate" results of the QueryDSL demonstration (which are not duplicates but contained in multiple TFGs) help or hinder the learning process (filtering them out would blow up the "minimal" demo code and hide the nature of "duplicate" items)

@sebinside sebinside added enhancement New feature or request testing Related to testing and test cases or models labels Mar 17, 2025
@sebinside sebinside added this to the 4.1.0 milestone Mar 17, 2025
@Nicolas-Boltz
Copy link
Copy Markdown
Member

Also add a test that is based on DFDs in addition to the PCM based models

@sebinside sebinside requested a review from Nicolas-Boltz April 2, 2025 13:16
@sebinside sebinside marked this pull request as ready for review April 2, 2025 13:16
@Nicolas-Boltz Nicolas-Boltz merged commit f176767 into main Apr 15, 2025
1 check passed
@Nicolas-Boltz Nicolas-Boltz deleted the demo-test branch April 15, 2025 11:24
@sebinside sebinside modified the milestones: 4.1.0, 5.0.0 May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request testing Related to testing and test cases or models

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add demo tests

2 participants