-
Notifications
You must be signed in to change notification settings - Fork 2
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
POC Cucumber #1211
POC Cucumber #1211
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ser fint ut 👍 men er nog fint hvis vi ikke må ta inn junit4 ?
pom.xml
Outdated
|
||
<dependency> | ||
<groupId>io.cucumber</groupId> | ||
<artifactId>cucumber-junit</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvis vi bruker cucumber-junit-platform-engine så bruker vi junit5 i stedet for 4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tror cucumber-java
støtter junit5 direkte, tror ikke vi burde bruke java8 her? cucumber/cucumber-jvm#2174
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Godt poeng. Jeg gikk for cucumber-java8 fordi det var så lite dokumentasjon på cucumber-java. Men så issuet du linket til og skjønte det skulle fases ut og gi lite support, så jeg gjorde en ekstra innsats for å få det til med nytt oppsett til tross for lite dokumentasjon. Har fått det til å virke nå, og det er sjekket inn 👍
import java.time.format.DateTimeFormatter | ||
|
||
abstract class BasisDomeneParser { | ||
companion object { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trenger disse metodene å være inne i en abstract class? Eller kan de bare vare inne i et Object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trenger ikke være i abstract class. Jeg fjernet det og companion object, så nå er det statiske metoder i en fil i stedet.
| BehandlingId | Endringstype | Endret i behandlingId | | ||
| 1 | ERSTATTET | 2 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Her ville jeg kanskje forventet å vise til at inntekten i andelshistorikken er forskjellig - siden det er endringen i tilstand? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja, var litt frem og tilbake når jeg lagde testen. Tenkte at testene strengt talt ikke sjekket på inntekt, men hva historikken ble. Siden du nevnte det så tok jeg med inntekt i test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generelt synes jeg det ser veldig bra ut. Tror det kan bli mange gode tester utfra dette oppsettet som "grunnmur"!
- Byttet oppsett til nyere java - Sjekker at inntekt er som forventet i scenario
# Conflicts: # pom.xml
Kudos, SonarCloud Quality Gate passed!
|
No description provided.