nangtani / blender-addon-tester

The blender addon tester is a test harness to enable pytest hook to allow addons to be tested inside a defined version of blender.
MIT License
65 stars 14 forks source link

Application Template support #28

Open Tilix4 opened 4 years ago

Tilix4 commented 4 years ago

Being able to run tests for a Blender Application Template would be a great feature for your module.

The main issues are:

douglaskastle commented 4 years ago

@Tilix4 Can you explain a little bit more what you mean by this? What is a template in this context and can you give an example of how the flow does not work as it is?

I assume you are referring to this:

https://docs.blender.org/manual/en/latest/advanced/app_templates.html

Is it like a virtual environment?

Names are what we acquire in life as we find our true purpose.

Tilix4 commented 4 years ago

Hi @douglaskastle!

Sorry for my short message, it wasn't that engaging.

You assume correctly. An application template allows you to extend Blender and fully reshape its UI. It's like an addon but you have a total control over Blender UI. It's like a virtual environment yes.

It could be nice to have a thing like from .run_blender import run_blender_version_for_app_template_with_pytest_suite as test_app_template in your addon.

Hope this project will find its true purpose.

Tilix4 commented 4 years ago

I'm currently working on a way to test application templates within your code.

In fact, I'm refactoring some things and doing some python style corrections at the time, will you be interested in me proposing a PR when it'll done?