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

@UsingDataSet should run before setup()? #142

Open
chrylis opened this issue Sep 9, 2015 · 1 comment
Open

@UsingDataSet should run before setup()? #142

chrylis opened this issue Sep 9, 2015 · 1 comment

Comments

@chrylis
Copy link

chrylis commented Sep 9, 2015

I am using nosqlunit-mongodb with Spock, and I was trying to add dynamically-generated information to the database in my setup() method. However, it appears that the NoSQLUnit @UsingDataSet rule is running after setup() and wiping out my new records. It seems to me that the rule ought to run before. Is that possible?

@tudvari
Copy link

tudvari commented May 3, 2017

Hi Chrylis,
I have a same setup, for me it's a working solution, if I you the @UsingDataSet annotation on the test method, not on the test class.

Could you give a shot for this?

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