-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
improve tests structure (visibility and clearness of arrange/act/assert blocks) #313
Comments
I will do |
@rina-tenitska, great!
Other contributors can do the same by the way, this is a big task, and can be done by more than 1 contributor ;) |
let's also reduce the scope of this issue just to tests inside https://github.com/yashaka/selene/tree/master/tests/integration |
Heyy, Is this issue still open? Would Like to contribute |
@Dbhardwaj99 |
Sure |
This is a parent issue. For PR, break it into issues per test file to refactor, once created – link them. Send PRs - one per test file!
Imagine you have this kind of test:
It's unclear from first sight where is precondition, where this step and assert blocks (aka arrange/act/assert or given/when/then). This influces its readability, let's improve it to the following style with clear break down into 3 corresponding blocks:
The text was updated successfully, but these errors were encountered: