sogis / gretl

Contains custom gradle tasks to use in gradle builds. The custom tasks extend gradle for use as a sql-centric (geo)data etl. gretl = gradle etl
MIT License
4 stars 3 forks source link

Update JUnit4 to JUnit5 or use Spock #134

Open Saela opened 7 months ago

Saela commented 7 months ago

The decision on what to do is still open. We have to discuss if we should update to JUnit5 or use Spock.

JUnit5 Upgrade

Migration guide: https://www.baeldung.com/junit-5-migration

With JUnit Vintage we can even rewrite tests iteratively because we can run JUnit5 and JUnit4 tests in parallel.

edigonzales commented 6 months ago

151 klares Bild bekommen und dann entscheiden. Auch wenn Spock erwähnt ist, dünkt mich das sehr aufwändig ohne wirklichen Benefit. Also Junit4 oder 5.

Saela commented 5 months ago

@edigonzales Ich verstehe nicht ganz, was du meinst mit "klares Bild bekommen und dann entscheiden". Entscheiden, ob wir auf JUnit5 gehen? Oder ob Spock doch sinnvoll wäre?

edigonzales commented 5 months ago

Ich glaube , ich meinte, dass man anhand #151 die Beurteilung machen sollte. Beim Issue 151 geht es um die Homogenisierung des Testcodes. Wenn aufgrund von Erkenntnissen aus 151 Spock ein Gamechanger wäre, könnte man über Spock reden. Ansonsten denke ich, wird es junit bleiben. Ob 4 oder 5? Auch das kann eventuell 151 helfen. Wenn man eh viel refactoren (um-/neuschreiben) will/muss, können wir gleich auf 5 gehen.

Saela commented 2 months ago

Aktionen:

Saela commented 1 week ago

@dkubanyi Could you please link your PR to this ticket as soon as you have one? You can do this by selecting the PR in the following issue setting (but you probably already know this :) ):

Image