Item11177: SemiAutomatic test case fails if rcs,v file is older than the .txt cache file

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UnitTestContrib
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: MichaelDaum
The latest store changes makes some of the unit tests fail without any good indication of why the failure has occured. Since reverting changes doesn't fix file system dates, reverting a change doesn't fix the test. Specifically if the rcs txt,v file is older than the txt file for any of the SearchTestTopics, then SemiAutomaticTestCaseTests::test_TestCaseAutoSearchOrder will fail.

  • Add an optional %FAILMSG% macro that will be expanded in the test results if the test fails.
  • Modify the postRenderingHandler of the TestFixturePlugin to expand the failure message

In TestCaseAutoSearchOrder, set the failure message

   * Set FAILMSG = <b>Verify the file system dates of the <code>.txt,v</code> files for each of the 3 SearchTestTopicX topics.   If the <code>.txt</code> file is newer in the file system than the corresponding <code>.txt,v</code> file, the test will fail.   <code>touch</code> each <code>.txt,v</code> file to resolve the failure.</b>

Note that this message is expanded after rendering, so it needs to be plain html.

-- GeorgeClark - 10 Oct 2011

 
Topic revision: r7 - 14 Oct 2020, MichaelDaum - This page was cached on 14 Oct 2020 - 12:12.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy