Skip to content

Conversation

@monilnarang1
Copy link
Collaborator

@monilnarang1 monilnarang1 commented Jul 25, 2022

This PR has:-
31 Unit tests retrofitted, selected individually via assert equal statements
Test Parameterised :- 30 (PUTs #)
Bugs found :- 4 (Potential Bug #)
New Test Added :- 1 (CUTs #)
Classes Covered :- 9
Old tests which can be removed after parameterisation :- 2 (Can be removed #) -> We can find / modify tests to make more of these if we are interested, I wasn't deliberately looking for them and still found 2.

In many places, I have created two new classes inside the test class, using @RunWith(Enclosed.class) to segregate parameterized and non-parameterized tests. If we use @RunWith(Parameterized.class) directly in a class, then all the tests, even the non-parameterized ones, would run multiple times.
This approach worked fine, but in some places, it required changing the ordering of tests; please bare with such scenarios until I try to find a way out. Also, indentation is deliberately not appropriately done for such cases to make the PR easy to perceive. Once I get the green flag will update it.

@monilnarang1 monilnarang1 changed the title 30 Tests Parameterized Retrofitting: Individual Tests :- 30 Tests Parameterised Sep 28, 2022
@monilnarang1 monilnarang1 changed the title Retrofitting: Individual Tests :- 30 Tests Parameterised Retrofitting: Individual Tests :- 31 Tests Parameterised Sep 28, 2022
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.

1 participant