Skip to content

Swift tests not getting type information from dependency until swift build is run #24

@simonbates

Description

@simonbates

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 .build directory if there is one
  • Open the Nova-Icarus-tests-example project 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.swift and Tests/ExampleLibraryTests/FooTests.swift
  • Rename the foo func in Foo.swift to something else and save the file
  • Switch to the FooTests.swift tab

Expected: an error to say that ‘foo’ cannot be found

Actual: no error

An error is displayed after swift build is run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions