REGRESSION TESTING INSTRUCTIONS

Overview

This page describes how to create and compare regression test suites for nl-soar7 comprehension. Creating a regression test suite involves building a directory comprising files representing a textual output of the grapher. For each regression sentence 4 files are created for chunked and unchunked semantic and syntactic graphs. Comparing a regression test suite with another (i.e. usually comparing a test suite after some changes to nl-soar with a stored default suite of 'correct' values) simply involves comparing these output files.

Creating a regression set

A regression test suite is creating using the executable create-reg-set7 which is made from the C source code. The use of the create-reg-set7 command is :

create-reg-set7 load-file regression-file tree-dir

The command will start a nl-soar process and create a new source file called regress.init.username.soar in the current directory. Unfortunately, in soar7, there is no way to automatically load this source file so this has to be done manually (i.e., type source regress.init.username.soar in the soar window. If nl-soar7 is not available in the current directory, an error will occur.

Comparing regression sets

Two directories containing regression suites are compared using the command compare-reg-set which is made from the C source code. The use of the compare-reg-set command is :

compare-reg-set regression-file tree-dir tree-dir2

The output of the compare-reg-set command is an sentence by sentence analysis of the differences between regression sets as well as a summary of all sentences. Example.

This page written by Mark H. Smith, April 1997. Updated by Julie Van Dyke, August 1997..