-
Notifications
You must be signed in to change notification settings - Fork 26
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
Set up new unittest system #448
Set up new unittest system #448
Conversation
This sets up the framework and ability to test the addon on multiple versions of blender. It continues to use the blender_execs.txt file to indicate which versions of blender are for running tests, but expands on controls to let the user specify which specific versions of blender they want to test, and with nice commandline documentation for args.
FYI that this isn't yet using the new build system, so in the meantime you'll have to modify the line: Once #422 is merged, we'll update the script here. |
I think I'm missing something, cause my output is barebones when running the test scripts. I did get the following error when running on Arch Linux, but it didn't seem to do much: Failed to open dir (No such file or directory): /run/user/1000/gvfs/
|
Happy to debug live in the later part of the dev team meeting in ~1h 45m, can you tell which line this is hailing from? I realize that nothing stops you from trying to use the bpy-build command, if you want to locally swap for those args in the run_tests.py file |
I'm not sure; doesn't impact much though. I'll test with |
Any newfound luck with the latest bpy build structure @StandingPadAnimations? If not, I can separatley try to test on another machine in a fresh space. |
Haven't tested with bpy-build yet, might try later today |
Still get the error with This is my test output: -------------------------------------------------------------------------------
bversion ran_tests ran failed errors
-------------------------------------------------------------------------------
(3.6.0) all_tests 2 0 No errors |
Currently, all two tests pass over all targeted versions of blender. See some different sample commands below (may eventually add this into a README, but that will be a later PR).
cmd:
python3 run_tests.py
cmd:
python3 run_tests.py -a
cmd:
python3 run_tests.py -t test_enable -v 3.6,2
(showing up running a specific test, and specific blender versions)Relates to #424 but does not itself complete the change, as individual tests still need to be migrated.