1
0

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 5 years have passed since last update.

【Unity】Zenject使用時にPlayModeテストに失敗する

1
Posted at

問題

Zenject使用時に、PlayModeテストを行うと次のようにテストに失敗してしまうことがあります。

スクリーンショット 2019-06-22 午後1.45.23.png
Zenject.ZenjectException : Assert hit! Cannot load scene 'TestSceneContextEvents' for test 'TestSceneContextEvents'. The scenes used by SceneTestFixture derived classes must be added to the build settings for the test to work

対処法

Assets > Plugins > Zenject > OptionalExtras > IntegrationTests > SceneTests > TestSceneContextEvents

で、TestSceneContextEventsシーンをScenes In Buildに追加します。

これで無事にテストが通ります。

スクリーンショット 2019-06-22 午後1.51.51.png
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?