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

test: data-driven validation tests #556

Merged
merged 18 commits into from
Sep 7, 2023
Merged

test: data-driven validation tests #556

merged 18 commits into from
Sep 7, 2023

Conversation

lars-reimann
Copy link
Member

Closes partially #543.
Closes partially #433.

Summary of Changes

  • Port the data-driven framework for validation tests from the old Xtext implementation to Langium.
  • Document how to write validation tests.

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #556 (7d24e8d) into main (befa503) will decrease coverage by 0.04%.
The diff coverage is 99.24%.

@@            Coverage Diff             @@
##             main     #556      +/-   ##
==========================================
- Coverage   99.55%   99.52%   -0.04%     
==========================================
  Files           5        6       +1     
  Lines        1135     1256     +121     
  Branches      238      276      +38     
==========================================
+ Hits         1130     1250     +120     
- Misses          5        6       +1     
Files Changed Coverage Δ
src/language/validation/nameConvention.ts 99.19% <99.19%> (ø)
src/language/constant/fileExtensions.ts 98.61% <100.00%> (+0.10%) ⬆️
src/language/validation/safe-ds-validator.ts 100.00% <100.00%> (ø)

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ MARKDOWN markdown-link-check 1 0 0.34s
✅ REPOSITORY git_diff yes no 0.05s
✅ TYPESCRIPT eslint 14 0 0 4.85s
✅ TYPESCRIPT prettier 14 0 0 1.21s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@lars-reimann lars-reimann merged commit f58bf20 into main Sep 7, 2023
5 of 7 checks passed
@lars-reimann lars-reimann deleted the validation-tests branch September 7, 2023 09:04
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants