-
Notifications
You must be signed in to change notification settings - Fork 18
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
Regression test for the parameters generated by the app #644
Regression test for the parameters generated by the app #644
Conversation
The previous test used the final builder generated by the workchain, which is like an end-to-end test. However, the builder depends on the version of the aiida-quantumespresso, which we want to avoid for the moment. In this PR, we only test the ui_parameters generated by the app. This ui_parameter is the most important parameter, and it contains all the information on the jobs. We can use it to recreate the whole qeapp instance. The test here guarantees that the ui_parameters are the same as the reference data.
adbb972
to
a3c35ac
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #644 +/- ##
==========================================
+ Coverage 75.78% 75.85% +0.07%
==========================================
Files 60 60
Lines 4299 4312 +13
==========================================
+ Hits 3258 3271 +13
Misses 1041 1041
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I didn't realize you have these tests, might steal them for my app as well. 😊
I didn't check all the details but the overall approach and motivation makes sense to me.
Emmm.... I got the idea to remove the builder generate part, but instead of removing it entirely it should be some where else. Since this PR is merged, I'd suggest to bring the workflow test back, since the idea is borrow from aiida-quantumespresso to test the workchain. We implement the workchain here as well and having some logic inside, so make no sense to me to just remove it entirely. |
I agree that the test on the WorkChain part is also important. I opened an issue on this, #645. I think it's meaningless to move it somewhere else and disable the test. The test itself needs to be rewritten completely. |
In order to implement #601 .
The previous test used the final builder generated by the workchain, which is like an end-to-end test. However, the builder depends on the version of the aiida-quantumespresso, which we want to avoid for the moment. In this PR, we only test the ui_parameters generated by the app. This ui_parameter is the most important parameter, and it contains all the information on the job. We can use it to recreate the whole qeapp instance. The test here guarantees that the ui_parameters are the same as the reference data.