Skip to content
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

Refactor test code to use assertj and using gherkin to define scenarios #307

Conversation

samirromdhani
Copy link
Contributor

I made an experimental refactor on test scenarios in order to make code more readable and use Gherkin-like syntax. I'd like to collect feedback on it.
I figured out that many services are applied in various scenarios, certain are used to validate tests (Then) and others are used to prepare data required for the method to test so we not have only one When step.

#306

Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com>
@samirromdhani samirromdhani changed the base branch from feat/304-refactor-and-fix-sclreport-behavior to develop August 9, 2023 13:46
@samirromdhani samirromdhani changed the base branch from develop to feat/304-refactor-and-fix-sclreport-behavior August 9, 2023 13:49
@samirromdhani samirromdhani marked this pull request as ready for review August 9, 2023 13:50
@samirromdhani samirromdhani changed the title Refactor/306 refactor test code to use assertj and using gherkin to define scenarios Refactor test code to use assertj and using gherkin to define scenarios Aug 9, 2023
@samirromdhani samirromdhani merged commit a43e611 into feat/304-refactor-and-fix-sclreport-behavior Aug 9, 2023
@samirromdhani samirromdhani deleted the refactor/306-refactor-test-code-to-use-assertj-and-using-gherkin-to-define-scenarios branch August 9, 2023 15:21
@samirromdhani samirromdhani restored the refactor/306-refactor-test-code-to-use-assertj-and-using-gherkin-to-define-scenarios branch August 11, 2023 07:07
@samirromdhani samirromdhani deleted the refactor/306-refactor-test-code-to-use-assertj-and-using-gherkin-to-define-scenarios branch August 11, 2023 07:12
@samirromdhani samirromdhani restored the refactor/306-refactor-test-code-to-use-assertj-and-using-gherkin-to-define-scenarios branch August 11, 2023 15:25
@samirromdhani samirromdhani deleted the refactor/306-refactor-test-code-to-use-assertj-and-using-gherkin-to-define-scenarios branch August 11, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor test code to use AssertJ and using Gherkin to define scenarios
1 participant