-
Notifications
You must be signed in to change notification settings - Fork 3
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
"Normalize" tests #169
Comments
I had problems regarding this when working on #168: in the edit offer tests, I had to change the date of creation of the offers because the dates previously used were causing conflicts with another test later on |
We need to prioritize this issue very soon. |
We can consider separating tests into different files and also have some listener that purges all the database's information. This could happen in each test or group. This is done in https://github.com/NIAEFEUP/website-niaefeup-backend but it's a totally different tech |
Right now there are tests that manage (create/delete) the resources they need and there are others that use what is available from prior tests. This can cause conflicts that should not happen, since the tests, or test groups (mainly tests inside a
describe
) should be independent from each other, and not have any influence on tests that appear after.So the test suites should be refactored in order to have each test/test group use only the resources they need, creating them and deleting them, without leaving "residues" for other tests.
The text was updated successfully, but these errors were encountered: