devhub-tud / devhub

DevHub is a software system designed to give students a simple practical introduction into modern software development.
15 stars 8 forks source link

Set log level to WARNING during tests #433

Open TimvdLippe opened 7 years ago

TimvdLippe commented 7 years ago

The tests generate an enormous log of mostly the following statements:

20:59:15.840 INFO  liquibase - changelog.xml: persist_students_with_delivery::Jan-Willem Gmelig Meyling: Table delivery_students created

To reduce the amount of logs generated, it would be nice to set the log level to WARNING during tests.

jwgmeligmeyling commented 7 years ago

I think it would be a better idea to run as many tests as possible against the same database state, because the DDL and setting up the course groups accounts to 90% of the build time... Or we can have Hibernate generating the schema, as opposed to running liquibase, just as we did for Moodcat: https://github.com/MoodCat/MoodCat.me-Core/blob/master/src/test/java/me/moodcat/database/bootstrapper/BootstrapRule.java . But it may break existing and any new tests in interesting ways....

I don't think setting the log level to WARNING makes any sense, because then the log becomes so worthless, there's no point in looking at it at all.