Add Operator tests #84999
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
14 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#84999
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduction
This task tracks progress of regression tests for mesh operators. A regression takes a test mesh, applies an operator on it and compares the result with a reference mesh (typically called expected object).
Note: Multiple developers can work on this task after discussing with other subscribers/assignee for clarification.
Adding a new test
blender/tests/python/operators.py
lib/tests/modeling/operators.blend
The wiki explains the steps in much more details: Python Tests
Style Guidelines to Follow for the Blend file:
Some examples:
D10218 (remove doubles)
22a8a3b214
(Deform tests)8373f497b
(Curve tests)Test cases
First screening of operators can be find in this sheet link for insights.
Add new tests for operators from the list below, they can be accessed by
bpy.ops.mesh
in the python console in Blender. For documentation, please refer herebevel_regression.blend
andbevel_operator.py
boolean_operator.py
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @Calra
Added subscriber: @zazizizou
Added subscriber: @sagbede
Added subscriber: @pjc7287
Added subscriber: @Rohan-cod
I hope everyone is safe and in good health in the wake of prevailing COVID-19.
My name is Rohan Gupta and I am a 3rd-year Computer Science undergraduate student at Shri Mata Vaishno Devi University. I have been working with Python for a couple of years now and have in-depth knowledge of it. I look forward to contributing to Blender Foundation as part of this year's GSoC.
My Linkedin Profile:- https://www.linkedin.com/in/rohang4837b4124/
Hi @Rohan-cod, thanks for interest. This task is not the right place to discuss GSoC, but feel free to discuss your ideas on blender.chat or devtalk.blender.org. You can also reach out to me directly if you are interested in contributing to this task or automated tests with Python in general.
Hello, Habib. Sorry to bother,
I am interested in contributing to this task. I am still very new to this but I hope that I can still be of help. What is a good way to get started on this task?
Hi Shinaola, https://wiki.blender.org/wiki/Developer_Intro/Overview is a good place to start. After going through that, the steps in the description should make more sense :) If not, you can ask more specific questions here
Added subscriber: @baka
@zazizizou Hello Habib, I was trying to figure out how to add the test cases that require user inputs. After a little experimenting, I noticed that in operators like extrude we can take a set of two objects (mouse-pointer-aid-object, classic-old-object) as test and expected objects. The position of one (mouse-pointer-aid-object) will represent the final position of the mouse where the click was made and the other will serve as an object on which the operator should be applied. And then we can simply call
bpy.ops.mesh.extrude_region_move
like function withTRANSFORM_OT_translate={"value":(x, y, z),
where (x, y, z) represents the value of of the mouse-pointer-object-position.Please give on views on this (This is helping me write my gsoc proposal)!
Hi @baka, cool! It's nice to hear you're interested. There are indeed some similar workarounds for modifiers tests (see tests for deform modifiers in
tests/modeling/modifiers.blend
), so if it works, it's a good idea. I think it's better to continue GSoC discussion at blender.chat though, if that's ok for you.Added subscriber: @himanshu_chauhan
Hey everyone, I am very new to whole open source thing and blender development, I have just built blender from source code, and now I would like to tackle my good first issue, and I have chosen this task, but I am not exactly sure what I have to do, can anyone guide me through. So far I have only understood the idea that we have to create two meshes, one is expected mesh, and one is test mesh on which we have to apply operators through python.
Added subscriber: @ankitm
Please read the wiki and the previous patches/commits linked. If there's a specific question/ part where you're stuck, let us know, here or at https://blender.chat
Added subscriber: @MaorA
I have added tests for symmetrize and merge. D11083 . Let me know if the diff is submitted properly.
Removed subscriber: @Rohan-cod
Added subscriber: @rdmo
This issue was referenced by
7168a4fa5c
Added subscriber: @PratikPB2123
Added subscriber: @rateeb-riyasat
Hey I was working on screw edge for testing and I realized the center parameter is in global coordinates, which might result in improper testing as the newly generated mesh after the operation is applied will be different depending on the position of the mesh, which could change as new operators are added.
hi @Calra / @zazizizou would this issue still benefit from contribution? If so, I might be able to help out with these type of tests. Could you please let me know if this issue is active and if contribution here would be useful/welcome? Thanks
@Dario-San I think it always makes sense to extend the automated testing framework with more test cases, so your contribution would definitely be useful. I am willing to help and review your patches :)