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