Improvement: Introduce names for test levels#1731
Conversation
sandro-elsweijer
left a comment
There was a problem hiding this comment.
Nice that you are considering to work on our CI! It is an honor and responsibility which you will keep forever ;)
Only one small remark :)
|
@sandro-elsweijer Sorry for the many github mails ;-) Something is off with the workflow now, it seems like it does not accept the |
|
As much as I liked the idea of using |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1731 +/- ##
=======================================
Coverage 74.08% 74.08%
=======================================
Files 99 99
Lines 18619 18619
=======================================
Hits 13793 13793
Misses 4826 4826 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
One has to love to work on github workflows |
Describe your changes here:
Closes #1677.
To avoid confusion, this PR changes the option
T8_CODE_TEST_LEVELto a property accepting only certain choices, i.e.,T8_TEST_LEVEL_FULL,T8_TEST_LEVEL_MEDIUM, andT8_TEST_LEVEL_BASIC. In ccmake, you can thus switch through the options hitting ENTER, similar toCMAKE_BUILD_TYPE.Note that in the background, this
T8CODE_TEST_LEVELstring is translated to an integer valueT8_TEST_LEVEL_INTwith the same valuesT8CODE_TEST_LEVELhad before this PR: 0 for full tests, 1 for intermediate, 2 for basic.Of course, I am open to change this, but I introduced it because:
#if T8_TEST_LEVEL_INT >= 1;#ifstatementsIn case you're interested, another option I considered is adding a new option
T8_CODE_TEST_LEVEL_NAMEthat allows you to specificy the test level by name, while still keeping the option of setting it as integer alive. However, i felt like that was bound to cause problems with contradicting values etc...All these boxes must be checked by the AUTHOR before requesting review:
Documentation:,Bugfix:,Feature:,Improvement:orOther:.All these boxes must be checked by the REVIEWERS before merging the pull request:
As a reviewer please read through all the code lines and make sure that the code is fully understood, bug free, well-documented and well-structured.
General
Tests
If the Pull request introduces code that is not covered by the github action (for example coupling with a new library):
Scripts and Wiki
script/find_all_source_files.scpto check the indentation of these files.License
doc/(or already has one).