vscode-swift
e71bbfa1 - Add integration tests for package dependencies (#1144)

Commit
239 days ago
Add integration tests for package dependencies (#1144) * Add integration tests for package dependencies - Verify various contract calls with spm - Exercises use local version workflow Issue: #1052 * - Split the original test case into smaller test cases - Switch to assert directly on executeCommand return * - Update enum name to match convention - Move tests to a more appropriate location under integration-tests/commands * Remove forgotten return statement * - Fix extra command constant that's not correctly mapped - Rename to CONSTANT_CASE for module level enums' value * - Adjust Swift version for the Swift-Markdown package used by the test to match up. * - Shift test order for spm update as the return code is different between toolchains above 5.9 and 5.9 + below. - Move to a spot where spm update is guranteed to return 0, after local dependency is fully set up. * - Add some debug lines to see which part failed in CI - Unified return for the dependencies command to return boolean * - Re-enable logToConsole behaviour, Paul's patch will give us the desired behaviour. * - Set the timeout to be more reasonable for running in CI * - Disable flaky test and add comment on subsequent action * - Maintain original register command ordering
Author
Parents
  • assets/test
    • Swift-Markdown
      • File
        Package.swift
      • Sources/PackageLib
        • File
          PackageLib.swift
    • dependencies
      • File
        Package.swift
      • Sources
        • File
          main.swift
  • src
    • File
      commands.ts
    • commands
      • File
        build.ts
      • dependencies
        • File
          resolve.ts
        • File
          unedit.ts
        • File
          update.ts
        • File
          useLocal.ts
      • File
        resetPackage.ts
  • test/integration-tests
    • commands
      • File
        dependency.test.ts
    • testexplorer
      • File
        TestExplorerIntegration.test.ts