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

Question: equivalent of @Before? #204

Open
pefribeiro opened this issue Dec 1, 2016 · 1 comment
Open

Question: equivalent of @Before? #204

pefribeiro opened this issue Dec 1, 2016 · 1 comment

Comments

@pefribeiro
Copy link

pefribeiro commented Dec 1, 2016

Hi,

I'm fairly new to Xpect and have been trying to implement some custom logic to prepare resources in a project before Xpect tests run. Traditionally in JUnit this would be done using @Before. I see that current tests can make use of some setup logic. I'm a bit at a loss as to where I should be looking into in order to insert my setup logic akin to @Before, so that it can be run before any of tests are checked. I would appreciate your guidance.

Thanks

@Guite
Copy link

Guite commented Dec 3, 2017

My current workaround for that is calling setUp and tearDown manually in the test method.

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