failed unit tests in PowerTools

Home Forums Open-Xml-PowerTools failed unit tests in PowerTools

This topic contains 1 reply, has 2 voices, and was last updated by  Eric White 7 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3414

    illuzioner
    Participant

    I followed the installation instructions in Eric’s video, first for the SDK and then for the PowerTools.

    The SDK built fine and passed all unit tests, but the Power Tools failed the following:
    
    Test Name:	OxPt.ShTests.SH004_ConvertRange(name: "SH123-FmtNumId-14.xlsx", sheetName: "Sheet1", range: "A1:A10")
    Test FullName:	OxPt.ShTests.SH004_ConvertRange (928e310a041fa403fe8c1638b2b1e0c51dd9ac21)
    Test Source:	c:\Users\Gene\Documents\WindowsPowerShell\Modules\Open-Xml-PowerTools-vNext\OpenXmlPowerTools.Tests\SmlToHtmlConverterTests.cs : line 130
    Test Outcome:	Failed
    Test Duration:	0:00:00.298
    Result Message:	System.IO.InvalidDataException : End of Central Directory record could not be found.

    and the other failed test was:

    Test Name: OxPt.ShTests.SH005_ConvertSheet(name: "SH123-FmtNumId-14.xlsx", sheetName: "Sheet1")

    with the same error message.

    How serious are these failed tests? Anyone know what is wrong and how to fix them?

    #3476

    Eric White
    Keymaster

    I have never seen these failures.

    If you pull both repos now, and run the unit tests on a clean build, do you see these failures?

    We did have some unit tests that could fail if you had your locale set to something other than US English, having to do with formatting of numbers (differences with commas and periods in formatting of numbers). However, I have never seen failures associated with throwing of System.IO.InvalidDataException.

    Please pull the repos again, do a clean build, and let me know how it goes.

    Cheers, Eric

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.