• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

During the last weeks I thought that it would be easy to automate tests from the TestCases web, by running them through view and checking the result for the string ALL TESTS PASSED. Unfortunately this isn't viable.

  • In TestCaseAutoMetaSearch, there's a formatted %METASEARCH{...}%. Expected and actual are identical when viewed with a browser, yet the TestFixturesPlugin complains if run with test=compare because it finds a non-expanded bullet list (three spaces, '*')
    • ...and of course, it doesn't expect recent class additions to links...
  • TestCaseAutoSearch is even more of a mystery because it reports ALL TESTS PASSED when run from a browser, yet the command line version complains.

There are in total eight test cases out of 20 which fail when run as unit test, whereas from a browser "only" four fail.

I'll remove test/unit/WebTestCasesAutoTests.pm from SVN, we have to look for better ways to automate that.

ItemTemplate
Summary I give up on converting TestCases web to unit tests
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4
SVN Range TWiki-4.1, Tue, 28 Nov 2006, build 12081
AppliesTo Engine
Component BuildScripts
Priority Normal
CurrentState Closed
WaitingFor

Checkins 12145
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-12-03 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback