Menu

RegressionTest

Running Regression Tests

The demo feature can be used to run tests covering most of the functionality of XTrackCAD.

  1. Remove any existing xtrkcad.regress file from the directory containing the the .INI/.rc files
  2. Start XTrackCAD as follows:
    • Linux: xtrkcad -d regression=2
    • Windows: xtrkcad /d regression=2
    • MacOS: /Applications/xtrkcad.app/Contents/MacOS/XtrkCAD -d regression=2
  3. Open Options|Sticky and ensure all toggle buttons are set, and click Ok. (See Bug #591)
  4. Open Help|Demos|Introduction
  5. On the demo dialog (labeled Introduction) click Step while holding Shift
  6. This will run all the demos, Sit back and watch the show!

After the tests are complete there will be a file called xtrkcad.regress in your working folder, ie. the directory where the .INI/.rc files are stored.

This will have a line for each test. If there are diffs , then there will be FAILURE lines.

Example:

REGRESSION FAIL 12
# D:\Applications\XTrackCAD Beta\share\xtrkcad\demos\dmgroup.xtr - 238
# Compare: T17 not found
Expected Track
STRAIGHT 17 0 0 0 0 DEMO 2 0.000000 0.000000
    E4 2.125000 2.281250 270.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
    T4 16 2.478000 2.281250 90.000000 0 0.0 0.0 0.0 0.0 0 0 0 0.000000 
    END$SEGS

Related

Wiki: BuildNotes
Wiki: Contribute
Wiki: Flatpak

MongoDB Logo MongoDB