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

Add Testing Framework #186

Closed
wants to merge 44 commits into from
Closed

Add Testing Framework #186

wants to merge 44 commits into from

Conversation

BradyAJohnston
Copy link
Owner

So far I have been slack on introducing formal unit testing & CI, as it's slightly more complex when having to try and test inside of Blender, which is a desktop app and not a installable package.

I have found the blender-addon-tester which aims to solve such a problem by scraping the Blender downloads page for relevant versions, downloading them then running Blender in the headless mode to run various pytest tests.

Certainly the import code should be able to be tested with this method, and reported on with pytest. The testing of the internal nodes will be slightly more difficult. In conversation with Blender devs, saving a 3D model and comparing it to a previously created 3D model is their method of testing the nodes, so potentially will try and set up something along those lines. .gltf is likely the model of choice.

This PR introduces the testing framework, which I am looking to add some more initial tests to in the coming weeks.

@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@4e8fc24). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #186   +/-   ##
=======================================
  Coverage        ?   43.82%           
=======================================
  Files           ?       14           
  Lines           ?     1887           
  Branches        ?        0           
=======================================
  Hits            ?      827           
  Misses          ?     1060           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@BradyAJohnston
Copy link
Owner Author

Using more robust testing in #186

@BradyAJohnston BradyAJohnston deleted the tests branch May 17, 2023 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant