icarus
icarus copied to clipboard
Swift tests not getting type information from dependency until `swift build` is run
Example project repository
https://github.com/simonbates/Nova-Icarus-tests-example
Case 1: Dependency not found when the project is first opened
Steps to reproduce:
- Remove the
.builddirectory if there is one - Open the
Nova-Icarus-tests-exampleproject directory in Nova (with the Icarus extension installed) - Open
Tests/ExampleLibraryTests/FooTests.swift
Expected: no error
Actual: “No such module ‘ExampleLibrary’”
The error goes away after swift build is run.
Case 2: Changes in dependency not picked up
Steps to reproduce:
- Open
Sources/ExampleLibrary/Foo.swiftandTests/ExampleLibraryTests/FooTests.swift - Rename the
foofunc inFoo.swiftto something else and save the file - Switch to the
FooTests.swifttab
Expected: an error to say that ‘foo’ cannot be found
Actual: no error
An error is displayed after swift build is run.