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

Allow to customize the approval files location from annotations in the code #9

Open
aneveux opened this issue Feb 26, 2018 · 0 comments

Comments

@aneveux
Copy link
Member

aneveux commented Feb 26, 2018

Instead of putting all the approved files in src/test/resources in folders named after the FQN of the class and creating files named after each method, annotations should allow the user to customize the location of generated files:

@ApprovalFiles("src/approvals/files")
class TestFoo {
   @ApprovalFile("barFile")
   @Test
   void bar() {
      Approvals.verify(...);
   }
}

Should allow me to have the generated approved and received files located in src/approvals/files/barFile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant