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 test infrastructure #5

Open
noelwarren opened this issue Oct 11, 2024 · 0 comments
Open

Improve test infrastructure #5

noelwarren opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@noelwarren
Copy link
Collaborator

Currently our cmake project has no tests (in the way cmake understands them). It does however have a tests target that can be executed from the IDE to run sketchup and load them. You currently must have testup installed in sketchup to run them.

Suggested improvements:

  • Add testup-2 as a submodule
  • modify the tests target
    • rename to avoid confusion with cmake tests predefined target
  • add cmake test to project via add_test
    • Add commands to the test that
      • Launch SketchUp
      • require testup (headless with no gui, since this would have to be built)
      • require our test files
      • run testup tests (generating a json file of some sort)
      • close sketchup
      • check the json and exit non zero if not all ok

In an ideal world we could actually run these tests with github actions, but I don't believe it is worth the dev effort at this stage

@Alex-Tsvetanov Alex-Tsvetanov added the enhancement New feature or request label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants