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

[Design/Tests] : redesign AS7 generators in order to improve testability ; validating the whole data flow without cmake's frontend #44

Open
bebenlebricolo opened this issue Nov 24, 2021 · 0 comments
Labels
enhancement New feature or request refactoring/maintanability Refactoring code and provide smarter ways of doing things/ more maintanable concepts

Comments

@bebenlebricolo
Copy link
Owner

bebenlebricolo commented Nov 24, 2021

Write more tests that allow to generate blank AtmelStudio/MicrochipStudio files from a blank model, without having to rely on the whole tryCompile machinery.

  • Stub the CMake generators specific code
  • Abstract the generator from Windows (should work on Linux as well for validation purposes)
  • In other words -> the data model shall be filled from any platform and files generated on any platform as well.
  • Test exotic configuration without relying on 'real' end user testing, so we can update and improve the generated data model much quicker.

I think this will require to redesign parts of the code inheritance scheme, as we are heavily relying on CMake cmGlobalGenerator, cmLocalGenerator implementations where we could (and should) decouple the code much more than this.

At the moment, the code for this project is kept under objects derived from cmGlobal/LocalGenerator classes. This does not play well with unit testing, .
We'd better extract the domain code from AtmelStudio7 generators and use composition patterns instead, in order to decouple the domain code from CMake's interfaces and provide bridging capabilities from the generator itself.

@bebenlebricolo bebenlebricolo added enhancement New feature or request refactoring/maintanability Refactoring code and provide smarter ways of doing things/ more maintanable concepts labels Nov 28, 2021
@bebenlebricolo bebenlebricolo changed the title [Tests] : Write tests to generate files at will [Design/Tests] : redesign AS7 generators in order to improve testability ; validating the whole data flow without cmake's frontend Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring/maintanability Refactoring code and provide smarter ways of doing things/ more maintanable concepts
Development

No branches or pull requests

1 participant