Replies: 6 comments 10 replies
-
It looks like the test is considered "passed" if the generated project is able to build successfully; is that correct? |
Beta Was this translation helpful? Give feedback.
-
I added more modules to test:
I really think sample projects are the way to validate regular generators. |
Beta Was this translation helpful? Give feedback.
-
Lively discussion ! So…this is just the unit vs. integration test debate. They both have value, they both have strengths and weaknesses. I'm a big proponent of unit testing, and these specific test suites have already proven themselves invaluable time and again. We are keeping them, that is not negotiable, end of discussion there. What the unit tests don't do a good job at, as @Jarod42's integration test suite has already shown, is proving that a feature works fully end-to-end, for any given toolset. So integration tests can have value for this project. What's up for discussion is scope, feasibility, maintainability…bang for the buck, really. I do share @samsinsane's concern re: the result matrix, which seems to imply "Visual Studio is 100% correct and working" and we know that isn't the case. Case in point: #1685. We already know that there are lots of other gaps like this and these integration tests, and they stand currently, don't reflect that. IMHO, to get over the bang-for-the-buck line I'd like these scripts to test and show results at the feature level. For instance, I'd like a way to see that the "static link modifier" feature is covered by these tests, and where it is passing and failing. @Jarod42 has a lot of plumbing for that here, it is just testing and reporting at too broad a level. Again IMHO, but I think it would be much more compelling if it identified a few core features and then provided a test matrix just for those, to start. Recap:
|
Beta Was this translation helpful? Give feedback.
-
I already asked for features to test. Whereas my matrix gives incomplete (I disagree on misleading :) ) feedback, it seems better than no feedback at all where we might expect in the same ways that it should works (your CI are validated after all). How do you want I display that matrix? My next step is to
|
Beta Was this translation helpful? Give feedback.
-
You keep saying "not sure if it is what you want"? Umm, this isn't my initiative? You asked the community if they found these tests useful. So far they seem to have said "not so much but maybe if…". What's next is up to you. Again, appreciate the contributions you're making to core! |
Beta Was this translation helpful? Give feedback.
-
:-)
I try to feel the gap of the "maybe if ..." to increase the chance to reconsider the current "no":
|
Beta Was this translation helpful? Give feedback.
-
I made some sample projects to test basic features on https://github.com/Jarod42/premake-sample-projects
It has already allowed to find some issues (and some has been fixed :-) ).
Current Github actions are by generator (we don't have matrix badge to fill automatically the result table :-/ )
Do you have suggestions about other features to test?
Beta Was this translation helpful? Give feedback.
All reactions