Post Unit Testing: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Jeffm (talk | contribs)
No edit summary
Jeffm (talk | contribs)
No edit summary
Line 1: Line 1:
[[Image:Testing_Diff_Summary.PNG|right|450px]]
[[Image:Testing_Diff_Summary.PNG|right|650px]]


==Overview==
==Overview==

Revision as of 00:06, 11 September 2015

Overview

Unit Testing is a way for a post developer to validate that changes to a post processor have had the desired effect. Compost4 contains tools to automate this process.

The Test Menu

Compost 4 v4.1.8.1 and later contains a Test menu. This is where all built in unit testing functions are located.

Baseline

When a post is opened, Compost automatically saves a copy of this post processor in a temporary folder as a 'Baseline' for the current editing session. This post will be used as a starting point for comparisons against later edits to the post.

The items in the Baseline Control submenu in under the Test menu can be used to update the the baseline post to the current working version, or some other file if needed.

Unit Tests

3 types of unit tests are available in the software. All 3 tests work the same, but simply use different sets of parts. Unit tests work in 2 stages, baseline and test generation. When a test is run, Compost will trigger it's linked version of GibbsCAM to post all the parts related to the test with first the baseline post, and then the current version of the post. The resulting output from these postings are compared, and a summary is shown to the post developer for review

Parts related to the post

If compost detects part files in the same location as the post processor then this test type will be available. This test will use all parts found with the post.

===Specific