Skip to content

Assets not found when run test using main methods #138

Open
@fabiitch

Description

@fabiitch

Hello when i launch main methods in tests folder

like using com.badlogic.gdx.ai.tests.BehaviorTreeTests#main

public static void main (String[] argv) {
	GdxAiTestUtils.launch(new BehaviorTreeTests());
}

i got error when he try to load a file.

		skin = new Skin(Gdx.files.internal("data/uiskin.json"));

		Caused by: com.badlogic.gdx.utils.GdxRuntimeException: File not found: data\uiskin.json (Internal)

For fix i have to add tests/ before asset path

skin = new Skin(Gdx.files.internal("tests/data/uiskin.json"));

im the only with this issues ?
Should i PR with all modifications ?

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