• 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.

Item7623: Various bugs in unit tests

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension UnitTests Low Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


  • FormattingTests.pm fail if the installation has IDsInURLs set to true: must be explicitly disabled in set_up
  • MdrepoScriptTests.pm do not reflect a minor change in the text of an error message
  • RequestTests.pm have wrong (!!) parentheses, leading to a warning with current CGI::Util
-- TWiki:Main/HaraldJoerg - 2015-03-08
  • WysiwygPlugin: Tests need to explicitly disable the CryptToken.
  • WysiwygPlugin: Adjust tests for _restHTML2TML being moved to TWiki::Plugins::WysiwygPlugin::Handlers

-- TWiki:Main.HaraldJoerg - 2015-12-22

New discoveries of old errors:

  • TWikiUserMappingContrib/TWikiUserMappingContribTests.pm fail, and they must have failed since a long time.
    • TWiki:Codev.MakeClearAttachmentsAreVersioned (Item6826) introduced a new column to the attachment table which never made it into the tests. I find it slightly disturbing that this error hasn't been fixed for at least five years. However, since it is hard to see how the layout of the attachment table has to do with user management, I'll replace the assert_str_equal with a couple of assert_matches tests. A little less strict, but a lot more robust.
  • TWikiUserMappingContrib/TWikiUserMappingTests.pm all fail during their setup phase. This has failed for ages since it tries to copy the system web with createWeb which simply doesn't work. To rewrite this takes more time than I have at the moment.
  • WysiwygPlugin/WysiwygPluginSuite.pm throws 3.500 lines of error report, it appears that it, too, hasn't been successfully run for some time.
  • FuncTests.pm tries to run a test case if LWP is not available which fails if and only if LWP is not available. Apparently support for pure-socket-GET has been removed, setting $TWiki::Net::LWPAvailable to 0 has no effect at all.

-- TWiki:Main.HaraldJoerg - 2017-04-11

As of today, TWikiSuite.pm passes (with exeption of the case handled in Item7640) So I'm closing this item for now. I'm giving up on the WYSIWYG suite which throws errors I don't understand (and has done this for years). 140 of 185 test cases pass.

-- TWiki:Main.HaraldJoerg - 2017-10-15

Summary Various bugs in unit tests
ReportedBy TWiki:Main.HaraldJoerg

SVN Range TWiki-6.0.1-trunk, Wed, 18 Feb 2015, build 28744
AppliesTo Extension
Component UnitTests
Priority Low
CurrentState Closed

Checkins TWikirev:28797 TWikirev:29662 TWikirev:29706 TWikirev:30329 TWikirev:30333
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2017-10-15 - 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