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

[Path] Add seven initial 'PocketShape` unit tests #4940

Closed

Conversation

Russ4262
Copy link
Contributor

@Russ4262 Russ4262 commented Jul 26, 2021

Add seven initial unit tests for the PocketShape op:

  • default values check
  • verify Use Outline feature
  • basic functionality
  • verify no overhang detection
  • verify Extra Offset (material allowance)
  • verify full circle exterior extension
  • verify multi-height face combination with extension

The small change to PathOpGui.ViewProvider() class allows for addition of view provider without initial interaction with the Task Panel. Learning this, I might make some changes to part of PR #4797 that is related to creation of GUI ops without initial Task Panel support.

These unit tests do not contain specific tests targeted at cut pattern path generation. They do compare output paths, mostly using the Offset cut pattern.

As of the creation of this PR, there is one FEM unit test not passing when running ./bin/FreeCADCmd --run-test 0.

Thank you for creating a pull request to contribute to FreeCAD! To ease integration, we ask you to conform to the following items. Pull requests which don't satisfy all the items below might be rejected. If you are in doubt with any of the items below, don't hesitate to ask for help in the FreeCAD forum!

  • Your pull request is confined strictly to a single module. That is, all the files changed by your pull request are either in App, Base, Gui or one of the Mod subfolders. If you need to make changes in several locations, make several pull requests and wait for the first one to be merged before submitting the next ones
  • In case your pull request does more than just fixing small bugs, make sure you discussed your ideas with other developers on the FreeCAD forum
  • Your branch is rebased on latest master git pull --rebase upstream master
  • All FreeCAD unit tests are confirmed to pass by running ./bin/FreeCAD --run-test 0
  • All commit messages are well-written ex: Fixes typo in Draft Move command text
  • Your pull request is well written and has a good description, and its title starts with the module name, ex: Draft: Fixed typos
  • Commit messages include issue #<id> or fixes #<id> where <id> is the FreeCAD bug tracker issue number in case a particular commit solves or is related to an existing issue on the tracker. Ex: Draft: fix typos - fixes #0004805

And please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 0.20 Changelog Forum Thread.


@berndhahnebach berndhahnebach added the WB CAM Related to the CAM/Path Workbench label Jul 31, 2021
@Russ4262 Russ4262 force-pushed the feature/pocketshape_unit_tests branch from 8eb2dd1 to 146a500 Compare August 2, 2021 20:41
@Russ4262 Russ4262 force-pushed the feature/pocketshape_unit_tests branch from 146a500 to 121094a Compare August 28, 2021 03:49
Add seven initial unit tests for the PocketShape op:
- default values check
- verify Use Outline feature
- basic functionality
- verify no overhang detection
- verify Extra Offset (material allowance)
- verify full circle exterior extension
- verify multi-height face combination with extension

The small change to PathOpGui.ViewProvider() class allows for proper addition of view provider without initial interaction with the Task Panel.
@Russ4262 Russ4262 force-pushed the feature/pocketshape_unit_tests branch from 121094a to edd7048 Compare September 24, 2021 11:42
@berndhahnebach
Copy link
Contributor

berndhahnebach commented Sep 24, 2021

Following a link to the branch on the CI-repository:

https://gitlab.com/freecad/FreeCAD-CI/-/commits/PR_4940

The CI-status is available on the latest commit of the branch.
If there is no status available the PR should be rebased on latest master.
Check pipeline branches to see if your PR has been run by the CI.

https://gitlab.com/freecad/FreeCAD-CI/-/pipelines?scope=branches

@Russ4262
Copy link
Contributor Author

Rebased.

@freecadci
Copy link

pipeline statusfor feature branch PR_4940. Pipeline #394930205 was triggered at edd7048. All CI branch pipelines.

@FreeCAD FreeCAD deleted a comment from freecadci Oct 25, 2021
@FreeCAD FreeCAD deleted a comment from freecadci Oct 25, 2021
@FreeCAD FreeCAD deleted a comment from freecadci Oct 25, 2021
@Russ4262 Russ4262 closed this Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WB CAM Related to the CAM/Path Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants