Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure different folders to different tests #296

Open
cebidanesrsi opened this issue Aug 23, 2022 · 0 comments
Open

Ability to configure different folders to different tests #296

cebidanesrsi opened this issue Aug 23, 2022 · 0 comments
Assignees

Comments

@cebidanesrsi
Copy link

I'm using the approvals to test images generated.
Today is possible to use PackageSettings on the same level on the test to define a different folder.

public class PackageSettings {
    public static String ApprovalBaseDirectory = "../resources";
}

When used this approach happen other issue. It is necessary to create the complete package name to the image be saved.

Scenario:
My test was created on ... test/java/{MY WHOLE PACKAGE NAME}/mytest.java and I'm using the PackageSettings. The expected is the image be created under ... test/resources/myimage.png, but no. Will happen a error complain about folder doesn't exist.

Is necessary to create ... test/resources/{MY WHOLE PACKAGE NAME}/ and my image will be saved correctly.

Resume
1 - I'm can have two or more test on the same level to different folder
2 - The PackageSettings just define partial baseDirectory and not the real baseDirectory

Related:
Ability to store approval files under different folder #2

@LarsEckart LarsEckart self-assigned this Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants