Item11177: SemiAutomatic test case fails if rcs,v file is older than the .txt cache file
Current State: Closed
Released In: n/a
Target Release: n/a
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
file is older than the
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.
- 10 Oct 2011