Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

Should outputs of gerenated code also need to be added in stable?

Open cd155 opened this issue 2 years ago • 2 comments

Drasil generates code. The generated code also generated some outputs. I just wonder if it is a good idea to have outputs that are generated by generated code also need to be included in the stable. In other words, how to verify whether generated code will produce consistent results.

Right now, we are manually checking whether outputs of generated code are consistent, but is it a good idea to automate this part?

cd155 avatar May 05 '22 22:05 cd155

This generalizes to: how do we insure that the code we generate is "as expected", not just textually, but that it actually works too. And absolutely, it should be automated.

However, we haven't done this yet because we don't want to force all developers in Drasil to install development environments for all the languages. We should likely do so for some CI versions though. There are details to be worked out, as installing everything takes a long time. So maybe not for all check-ins, but as a pass before a PR is accepted, yes.

The other question is: do we really want to do this using our very crude method (textual output in stable)? Probably not.

JacquesCarette avatar May 08 '22 15:05 JacquesCarette

We don't currently generate test cases for our case studies. This would be a good thing to add in the future.

smiths avatar May 09 '22 13:05 smiths