Ivan Seidel <notifications@github.com> wrote:
>> \ No newline at end of file
>> +};
>
>If we need to test it with the actual database, is it possible too?

I do not have much experience with sails but as far as I can see we would only have to change the adapter in the index.JS test file (right now it's test, it could also be heroku or something else).

I am just not sure if we would really want to do this. The tests change some data and thus we use sails-memory to store it (in order not no break anything).

What I would like to do instead would be creating a DB structure using fixtures which will closely resemble the structure of a database in real usage (that means with groups, teams, matches, scores and everything) so that we cover everything that could be potentially used in the real application in testing.

More generally speaking, these tests are not aimed at the DB structure but on the controlling logic of the application. In our case this is for instance the current score table generation.

Does it make more sense now?

>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/RoboCupDev/tournamenter/pull/9/files#r9024583

mrShu, http://mr.shu.io