• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 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 Being Worked On   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

  • 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

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

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

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

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2017-05-25 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback