Skip to content

Use .sortedKeys for JSONEncoder, so output is stable #2

Use .sortedKeys for JSONEncoder, so output is stable

Use .sortedKeys for JSONEncoder, so output is stable #2

GitHub Actions / Xcode test results failed Oct 30, 2023 in 0s

Xcode test results

Testing workspace swift-package-list with scheme SwiftPackageList-Package

Summary

TotalSuccess PassedFailure FailedSkipped SkippedExpected Failure Expected Failure⏱️ Time
24231000.58s

Test Summary

SwiftPackageListCoreTests

  • Device: Mac mini, 13.6 (22G120)
  • SDK: macOS 13.3, 13.3
TestTotalSuccessFailureSkippedExpected Failure
test-class FileTypeTests22000
test-class JSONGeneratorTests10100
test-class PDFGeneratorTests11000
test-class PackageResolvedTests33000
test-class ProjectTests22000
test-class PropertyListGeneratorTests11000
test-class SettingsBundleGeneratorTests55000

SwiftPackageListObjcTests

  • Device: Mac mini, 13.6 (22G120)
  • SDK: macOS 13.3, 13.3
TestTotalSuccessFailureSkippedExpected Failure
test-class SPLPackageListTests33000

SwiftPackageListTests

  • Device: Mac mini, 13.6 (22G120)
  • SDK: macOS 13.3, 13.3
TestTotalSuccessFailureSkippedExpected Failure
test-class PackageListTests33000

swift-package-list-tests

  • Device: Mac mini, 13.6 (22G120)
  • SDK: macOS 13.3, 13.3
TestTotalSuccessFailureSkippedExpected Failure
test-class ExecutionTests33000

Failure Failures

SwiftPackageListCoreTests/JSONGeneratorTests/testOutput()

File/Users/runner/work/swift-package-list/swift-package-list/Tests/SwiftPackageListCoreTests/JSONGeneratorTests.swift:54
Issue TypeAssertion Failure
MessageXCTAssertEqual failed: ("[{"license":"MIT","name":"test","repositoryURL":"https:\/\/github.com\/test\/test","revision":"xxxx","version":"1.0.0"}]") is not equal to ("[ { "revision" : "xxxx", "license" : "MIT", "name" : "test", "repositoryURL" : "https:\/\/github.com\/test\/test", "version" : "1.0.0" } ]")

Details

Test Details

SwiftPackageListCoreTestsback

FileTypeTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testOutputGenerator()
Successtest-method testOutputURL()

JSONGeneratorTests back

SuccessFailureSkippedExpected Failure⏱️
0 (0%)1 (100%)0 (0%)0 (0%)0.10s
Failuretest-method testOutput()back

PDFGeneratorTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.23s
Successtest-method testOutput()

PackageResolvedTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testUnsupportedVersion()
Successtest-method testVersion1()
Successtest-method testVersion2()

ProjectTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.02s
Successtest-method testProject()
Successtest-method testWorkspace()

PropertyListGeneratorTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testOutput()

SettingsBundleGeneratorTests back

SuccessFailureSkippedExpected Failure⏱️
5 (100%)0 (0%)0 (0%)0 (0%)0.02s
Successtest-method testAcknowledgementsPlistOutput()
Successtest-method testAcknowledgementsStringsOutput()
Successtest-method testRootPlistOutput()
Successtest-method testRootStringsOutput()
Successtest-method testTestPlistPathOutput()

SwiftPackageListObjcTestsback

SPLPackageListTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testErrors
Successtest-method testJSON
Successtest-method testPropertyList

SwiftPackageListTestsback

PackageListTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testErrors()
Successtest-method testJSON()
Successtest-method testPropertyList()

swift-package-list-testsback

ExecutionTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.20s
Successtest-method testCommandExecution()
Successtest-method testGenerateSubcommandExecution()
Successtest-method testScanSubcommandExecution()

Annotations

Check failure on line 54 in swift-package-list/Tests/SwiftPackageListCoreTests/JSONGeneratorTests.swift

See this annotation in the file changed.

@github-actions github-actions / Xcode test results

Assertion Failure

XCTAssertEqual failed: ("[{"license":"MIT","name":"test","repositoryURL":"https:\/\/github.com\/test\/test","revision":"xxxx","version":"1.0.0"}]") is not equal to ("[
  {
    "revision" : "xxxx",
    "license" : "MIT",
    "name" : "test",
    "repositoryURL" : "https:\/\/github.com\/test\/test",
    "version" : "1.0.0"
  }
]")