<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=CONFIDENCE</id>
	<title>CONFIDENCE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=CONFIDENCE"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=CONFIDENCE&amp;action=history"/>
	<updated>2026-08-20T06:52:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=CONFIDENCE&amp;diff=833&amp;oldid=prev</id>
		<title>ConvertBot: Runs a set of NeXtMidas test macros on an option tree</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=CONFIDENCE&amp;diff=833&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:11Z</updated>

		<summary type="html">&lt;p&gt;Runs a set of NeXtMidas test macros on an option tree&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Runs a set of NeXtMidas test macros on an option tree&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;opt&amp;gt;  Option tree name to test&lt;br /&gt;
&lt;br /&gt;
Optional Test Configuration File:&lt;br /&gt;
  test_config.tbl - Input file to add to/modify tests in test area of &amp;lt;opt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
CONFIDENCE runs the any configured unit tests and test macros located in the&lt;br /&gt;
test area of the specified option tree.  This test suite returns an overall&lt;br /&gt;
PASS / FAIL message for each command tested.&lt;br /&gt;
&lt;br /&gt;
Each test typically exercises multiple aspects of the command it is testing.&lt;br /&gt;
If any of these constituent tests associated with the command fail, CONFIDENCE&lt;br /&gt;
returns a FAIL message to the user.  ALL constituent tests associated with a&lt;br /&gt;
command must pass in order for CONFIDENCE to return a PASS message for that&lt;br /&gt;
command.&lt;br /&gt;
&lt;br /&gt;
CONFIDENCE is actually a wrapper macro that runs tests for all commands in the&lt;br /&gt;
option tree that have a test_&amp;lt;command&amp;gt; macro in the test subdirectory.  If the&lt;br /&gt;
file test_config.tbl exists in the test area/subdirectory, it can be used to&lt;br /&gt;
modify the default behavior (see Configuration Table File Definition section&lt;br /&gt;
below for more details).  To run the individual tests, type;&lt;br /&gt;
&lt;br /&gt;
  nM&amp;gt; home test &amp;lt;opt&amp;gt;&lt;br /&gt;
and run:&lt;br /&gt;
  nM&amp;gt; %test_&amp;lt;command&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If in the course of running the CONFIDENCE macro a FAIL message is returned,&lt;br /&gt;
and the user wishes to get PASS / FAIL information for the constituent tests&lt;br /&gt;
for that particular command; the macro in the nxm.&amp;lt;opt&amp;gt;.test area should be run&lt;br /&gt;
individually.  For example, with one's home path set to the test area you can&lt;br /&gt;
run:&lt;br /&gt;
  nM&amp;gt; %TEST_CALCULATOR&lt;br /&gt;
to see the individual results of the calculator command tests.&lt;br /&gt;
&lt;br /&gt;
Since 2.7.1: All test failures are printed (instead of rolled up into one FAIL&lt;br /&gt;
message for that command so that user does not need to re-run failed test cases&lt;br /&gt;
to get more detailed information.&lt;br /&gt;
&lt;br /&gt;
Since 3.1.0: the /baseline, /interactive, and /debug (using value of /dbg)&lt;br /&gt;
switches are propagated to all test macros and their sub-test macros.&lt;br /&gt;
&lt;br /&gt;
Configuration Table File Definition&lt;br /&gt;
-----------------------------------&lt;br /&gt;
The configuration table file (test_config.tbl) can be converted directly&lt;br /&gt;
to a NeXtMidas Table and consists of a number of TAG=VALUE lines.&lt;br /&gt;
Where TAG=VALUE can be:&lt;br /&gt;
  1) A quoted and comma separated list of additional test &amp;lt;name&amp;gt;'s.&lt;br /&gt;
       TESTLIST=&amp;quot;&amp;lt;name1&amp;gt;,...,&amp;lt;name2&amp;gt;&amp;quot;&lt;br /&gt;
    where &amp;lt;nameN&amp;gt; is TEST_&amp;lt;nameN&amp;gt;.mm. This allows TEST_&amp;lt;name&amp;gt;'s to be run&lt;br /&gt;
    when &amp;lt;name&amp;gt; does not correspond to a command in the option tree.&lt;br /&gt;
&lt;br /&gt;
  2) Any command in the command dictionary followed by a tag.&lt;br /&gt;
     &amp;lt;cmd&amp;gt;=[BROKEN|NOTEST|WEB|&amp;lt;cmd2&amp;gt;]&lt;br /&gt;
     where&lt;br /&gt;
       BROKEN - Test is KNOWN to be broken so you want to skip it&lt;br /&gt;
       NOTEST - Do not desire to have a test for this command&lt;br /&gt;
       WEB    - Test requires a WEBSERVER to be running&lt;br /&gt;
       &amp;lt;cmd2&amp;gt; - NO test required for &amp;lt;cmd&amp;gt;, it is tested when test for&lt;br /&gt;
                &amp;lt;cmd2&amp;gt; is run.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  Run only NON-INTERACTIVE tests (all interactive tests will show as passed)&lt;br /&gt;
    nM&amp;gt; confidence&lt;br /&gt;
&lt;br /&gt;
  Run INTERACTIVE and NON-INTERACTIVE tests&lt;br /&gt;
    nM&amp;gt;confidence/interactive&lt;br /&gt;
&lt;br /&gt;
  Run NON-INTERACTIVE tests and show any commands MISSING tests&lt;br /&gt;
    nM&amp;gt;confidence/miss&lt;br /&gt;
&lt;br /&gt;
  Run NON-INTERACTIVE tests and stop at the ASK command&lt;br /&gt;
    nM&amp;gt;confidence/stopat=ASK&lt;br /&gt;
&lt;br /&gt;
SWITCHES:&lt;br /&gt;
  /BASELINE    - Run this before baseline release, enables additional&lt;br /&gt;
                 non-interactive testing and turns on /INTERACTIVE. [DEF=FALSE]&lt;br /&gt;
  /DBG         - Show detailed status line for tests in sub-macros. [DEF=FALSE]&lt;br /&gt;
  /DEBUG       - Show status line for each test. [DEF=TRUE]&lt;br /&gt;
  /INTERACTIVE - Non-interactive and interactive tests. [DEF=/BASELINE]&lt;br /&gt;
  /MISS        - Show commands which are missing tests. [DEF=TRUE]&lt;br /&gt;
  /RESUME=cmd  - Skips test macros prior to specified command.&lt;br /&gt;
  /STOPAT=cmd  - Stops at specified command (does not run given command).&lt;br /&gt;
  /WEB         - Run tests which require HTTPD, see HELP WEBSERVERS&lt;br /&gt;
&lt;br /&gt;
SEE ALSO: HOMEPATH, ASSERT, UNITTEST&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>