Testing/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
=== Introduzione ===
<div class="mw-translate-fuzzy">
{{docnav/it|[[Debugging/it|Correggere i bug]]|[[Continuous Integration/it|Integrazione continua]]}}
</div>

[[Image:Workbench_Test.svg|center|240px]]
{{Caption|align=center|The FreeCAD Testing Workbench Icon}}

== Introduzione ==

{{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}}.
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.


== Introduction ==
== Funzioni di test ==
This is the list of test apps as of 0.15 Git 4207:
Questa è la lista delle applicazioni di test di 0.15 Git 4207:


=== TestAPP.All ===
=== TestAPP.All ===
Add test funtion
Add test function


=== BaseTests ===
=== BaseTests ===
Add test funtion
Add test function


=== UnitTests ===
=== UnitTests ===
Add test funtion
Add test function


=== Document ===
=== Document ===
Add test funtion
Add test function


=== UnicodeTests ===
=== UnicodeTests ===
Add test funtion
Add test function


=== MeshTestsApp ===
=== MeshTestsApp ===
Add test funtion
Add test function

=== TestDraft ===
Add test function


=== TestSketcherApp ===
=== TestSketcherApp ===
Add test funtion
Add test function


=== TestPartApp ===
=== TestPartApp ===
Add test funtion
Add test function


=== TestPartDesignApp ===
=== TestPartDesignApp ===
Add test funtion
Add test function


=== Workbench ===
=== Workbench ===
Add test funtion
Add test function


=== Menu ===
=== Menu ===
Add test funtion
Add test function


=== Menu.MenuDeleteCases ===
=== Menu.MenuDeleteCases ===
Add test funtion
Add test function


=== Menu.MenuCreateCases ===
=== Menu.MenuCreateCases ===
Add test funtion
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:}}}}

[[Category:Developer Documentation{{#translation:}}]]
{{clear}}
[[Category:Test Framework{{#translation:}}]]
<languages/>
[[Category:Workbenches{{#translation:}}]]
[[Category:Testing{{#translation:}}]]

Revision as of 04:24, 22 February 2020

The FreeCAD Testing Workbench Icon

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

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 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