Skip to content

TestCase "ValidateCustomIndexation(t:shader sh_rendertype=opaque [Assets/Materials/SurfaceShader.shader] => 1 )" failed. #52

@hanachiru

Description

@hanachiru

The EditorMode Test of projects that depend on this package is Failed.

Image

var shaderInPackage = "Assets/Materials/SurfaceShader.shader";
yield return new CustomIndexationTestCase("t:shader sh_rendertype=opaque", shaderInPackage, true);

#46 (comment)

testables in manifest.json do not work if UNITY_INCLUDE_TESTS is not defined in defineConstraints in com.unity.search.extensions.editor.asmdef. I defined it on a trial basis and it worked correctly.

{
  "dependencies": {
    "com.unity.search.extensions": "https://github.com/Unity-Technologies/com.unity.search.extensions.git?path=package",
    ...
  },
  "testables": [

  ]
}

In my opinion, it is better to separate asmdef for editor and asmdef for test.

ref : #46 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions