0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Xcode の Swift Package : Unit テストのメソッド名の先頭は "test" 縛り

Posted at

作業手順

Xcode Version 11.6 (11E708)

  1. File → New → Swift Package で MyLibrary プロジェクトを作成。
  2. MyLibraryTest.swift を変更
  3. Command+U でテストを実行
スクリーンショット 2020-08-06 19.41.28.png "noTest" は呼び出されていない。allTests に追加していけば実行してくれるのかと思いきや無視されていた。

Xcode では "test" で始まるメソッドを自動的に実行する。


ドキュメントの何処かにあるのかもしれないが探せなかった。忘れた頃に同じ事でハマるのでメモっておく。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?