Testing/it: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
</div> |
|||
[[Image:Workbench_Test.svg|thumb|128px|Test workbench icon]] |
|||
FreeCAD possiede una sua struttura di estensione per le prove. Le prove si basano su un insieme di script Python che si trovano nel modulo test. |
|||
⚫ | |||
⚫ | |||
{{TOCright}} |
|||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
[[Test Framework/it|Test Framework]] non è in realtà un ambiente di modellazione, ma contiene un set di script [[Python/it|Python]] per eseguire diversi test sui componenti principali di FreeCAD, al fine di eseguire il debug dei problemi. Vedere anche come [[debugging/it|eliminare gli errori]]. |
|||
</div> |
|||
You can run the tests from the command line, by using the {{incode|-t}} or {{incode|--run-test}} options. |
|||
Run all tests: |
|||
{{Code|code= |
|||
freecad --run-test 0 |
|||
}} |
|||
Run only some the specified unit test, for example: |
|||
{{Code|code= |
|||
freecad -t TestDraft |
|||
}} |
|||
== Test menu == |
|||
Each top level directory in FreeCAD should have a file with the tests that can be run for that particular workbench or module. The file usually starts with the word {{incode|Test}}. |
|||
To run a test from within FreeCAD, switch to the Test Workbench, then {{MenuCommand|Test commands → TestToolsGui → Self test → Select test name}}, then enter the name of the Python file with the tests; for example, for the [[Draft Workbench|Draft Workbench]], this would be {{MenuCommand|TestDraft}}, then press {{Button|Start}}. |
|||
== Funzioni di test == |
|||
Questa è la lista delle applicazioni di test di 0.15 Git 4207: |
|||
=== TestAPP.All === |
|||
Add test function |
|||
=== BaseTests === |
=== BaseTests === |
||
Add test |
Add test function |
||
=== UnitTests === |
=== UnitTests === |
||
Add test |
Add test function |
||
=== Document === |
=== Document === |
||
Add test |
Add test function |
||
=== UnicodeTests === |
=== UnicodeTests === |
||
Add test |
Add test function |
||
=== MeshTestsApp === |
=== MeshTestsApp === |
||
Add test |
Add test function |
||
=== TestDraft === |
|||
Add test function |
|||
=== TestSketcherApp === |
=== TestSketcherApp === |
||
Add test |
Add test function |
||
=== TestPartApp === |
=== TestPartApp === |
||
Add test |
Add test function |
||
=== TestPartDesignApp === |
=== TestPartDesignApp === |
||
Add test |
Add test function |
||
=== Workbench === |
=== Workbench === |
||
Add test |
Add test function |
||
=== Menu === |
=== Menu === |
||
Add test |
Add test function |
||
=== Menu.MenuDeleteCases === |
=== Menu.MenuDeleteCases === |
||
Add test |
Add test function |
||
=== Menu.MenuCreateCases === |
=== Menu.MenuCreateCases === |
||
Add test |
Add test function |
||
<div class="mw-translate-fuzzy"> |
|||
{{docnav|Debugging|Branding}} |
|||
{{docnav/it|[[Debugging/it|Correggere i bug]]|[[Continuous Integration/it|Integrazione continua]]}} |
|||
</div> |
|||
<!--T:21--> |
|||
[[Category:Developer Documentation]] |
|||
{{Userdocnavi{{#translation:}}}} |
|||
⚫ | |||
{{clear}} |
|||
[[Category:Test Framework{{#translation:}}]] |
|||
⚫ | |||
[[Category:Workbenches{{#translation:}}]] |
|||
[[Category:Testing{{#translation:}}]] |
Revision as of 22:36, 21 March 2020
Introduzione
Test Framework non è in realtà un ambiente di modellazione, ma contiene un set di script Python per eseguire diversi test sui componenti principali di FreeCAD, al fine di eseguire il debug dei problemi. Vedere anche come eliminare gli errori.
You can run the tests from the command line, by using the -t
or --run-test
options.
Run all tests:
freecad --run-test 0
Run only some the specified unit test, for example:
freecad -t TestDraft
Each top level directory in FreeCAD should have a file with the tests that can be run for that particular workbench or module. The file usually starts with the word Test
.
To run a test from within FreeCAD, switch to the Test Workbench, then Test commands → TestToolsGui → Self test → Select test name, then enter the name of the Python file with the tests; for example, for the Draft Workbench, this would be TestDraft, then press Start.
Funzioni di test
Questa è la lista delle applicazioni di test di 0.15 Git 4207:
TestAPP.All
Add test function
BaseTests
Add test function
UnitTests
Add test function
Document
Add test function
UnicodeTests
Add test function
MeshTestsApp
Add test function
TestDraft
Add test function
TestSketcherApp
Add test function
TestPartApp
Add test function
TestPartDesignApp
Add test function
Workbench
Add test function
Menu
Add test function
Menu.MenuDeleteCases
Add test function
Menu.MenuCreateCases
Add test function
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub