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

Improve fpp-to-cpp testing infrastructure #644

Open
Kronos3 opened this issue Mar 3, 2025 · 0 comments
Open

Improve fpp-to-cpp testing infrastructure #644

Kronos3 opened this issue Mar 3, 2025 · 0 comments
Labels
scripts Issues related to support scripts

Comments

@Kronos3
Copy link
Collaborator

Kronos3 commented Mar 3, 2025

Test auto-detection

A lot that goes into test writing is updating boilerplate code and its very easy to make a mistake.

  • Add the test to test.sh
  • Define it in run.sh
  • Add ref updates to update-ref.sh

We can probably add a helper script that will compute the C++ headers/source code that a test would generate and automatically fill in all of these.

Test shadowing

Our tests are grouped by type in directories though each test can still be next to another test. It would be good to generate the .cpp/.hpp in their own directory to more easily determine what was generated by each test. Also if there are overlapping definition in adjacent tests, there won't be ref conflicts.

@Kronos3 Kronos3 added proposed feature A proposed new feature scripts Issues related to support scripts and removed proposed feature A proposed new feature labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scripts Issues related to support scripts
Projects
None yet
Development

No branches or pull requests

1 participant