Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI/CD Pipeline and Tests #2

Merged
merged 40 commits into from
Aug 9, 2024
Merged

Add CI/CD Pipeline and Tests #2

merged 40 commits into from
Aug 9, 2024

Conversation

DRovara
Copy link
Collaborator

@DRovara DRovara commented Aug 6, 2024

This pull request adds tests and a CI/CD pipeline to the project

Pipeline

The CI/CD pipeline is based on the MQT reusable workflows. The workflow files are heavily inspired by QCEC.

Tests

This pull request introduces a large number of tests, ranging from unit tests to end-to-end tests. They are run by the CI pipeline.

It includes the following test types:

  • Python Tests
    • Tests for all individual Python bindings
    • Tests for all diagnosis methods and their interpretation in Python
    • Several end-to-end tests that simulate full code files and compare their measurement results and the number of encountered assertion failures
  • C++ Tests
    • Tests of all utility functions (such as getting the exact position of an instruction in the code)
    • Tests of all diagnosis tools
    • Tests of data retrieval during debugging, including getting individual amplitudes, state vectors and classical values
    • Tests of simulation methods such as stepping through the code and using breakpoints
    • "custom code" tests that allow individual qasm code examples to be tested.

While the name for the project has not been finalised (mqt-debug, mqt-debugger, ...), some links may be incorrect.

DRovara added 25 commits July 15, 2024 18:41
This will be useful for testing. `runAll` will not stop at assertions and instead count the total number of failures.
Transitive interactions are not always found. This update repeats interaction discovery multiple times to find transitive interactions
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

app/testDDSimDebugger.cpp Fixed Show fixed Hide fixed
@DRovara DRovara merged commit 476ca89 into main Aug 9, 2024
51 checks passed
@DRovara DRovara deleted the tests branch August 9, 2024 10:12
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