BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

iSQI CTAL-ATT Exam - Topic 9 Question 45 Discussion

Posted by Shawnna on Sep 19, 2024 at 12:14 AM

When test cases are re-run after refactoring, what should always be verified?

Suggested Answer: D

Get Premium CTAL-ATT Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
HE
Hector 1 year ago
Redundant tests should definitely be removed, but results matter most!
SH
Shonda 1 year ago
Wait, are we really sure about that? What if the changes are valid?
CL
Clarinda 1 year ago
Agreed, results consistency is key after refactoring.
MI
Mira 1 year ago
I think branch coverage is more important, though.
SO
Sonia 1 year ago
Always check that they provide the same results as before!
CA
Carisa 1 year ago
I wonder if removing redundant tests is something we should always do. It seems like it could help, but I'm not confident that's the priority.
KA
Kandis 1 year ago
I practiced a question like this, and I feel like ensuring the results are consistent is the main focus after refactoring.
CA
Carlton 1 year ago
I'm not entirely sure, but I remember something about branch coverage being important too. Maybe that's a factor?
PH
Phillip 1 year ago
I think we should verify that the tests provide the same results as before, right? That seems crucial after any changes.
IS
Isadora 1 year ago
Ah, this is a tricky one. I'll need to make sure I understand the implications of refactoring and what the key things are to verify. Removing redundant tests could also be important.
TH
Theron 1 year ago
I think the correct answer is that the test results should be the same as before. Refactoring is about improving the code without changing its behavior, so the outputs need to stay the same.
HO
Howard 1 year ago
Hmm, I'm not sure about this one. I'll need to think carefully about what the key things are to check when re-running tests after a refactoring. Better logging could also be important.
WE
Wenona 1 year ago
This seems straightforward - I should focus on verifying that the test results are the same as before the refactoring. That's the most important thing.
CO
Corinne 1 year ago
Hmm, I'm a little unsure about this one. The prompt is talking about crimes against businesses, so I'm not sure if that means it's specifically talking about internal crimes like employee theft and embezzlement, or external crimes like shoplifting and burglary. I'll have to think this through carefully.
SH
Sharmaine 2 years ago
I'm with Jarod on this one. Refactoring is all about improving the code under the hood, not changing the way it behaves. C is the answer.
JE
Jestine 2 years ago
C is the way to go. If the refactored code doesn't give the same results, then you've got a bigger problem on your hands!
GL
Glendora 1 year ago
↳ replying to Jestine
D) That tests that have now been made redundant are removed from the test set
ME
Melodie 1 year ago
↳ replying to Jestine
C) That they provide the same results as before
DE
Denny 1 year ago
↳ replying to Jestine
A) That the branch coverage is the same or increased
DE
Delfina 2 years ago
A seems like a strange choice. Branch coverage is important, but it's not the first thing I'd check after a refactoring. I'm sticking with C.
FR
Freeman 1 year ago
↳ replying to Delfina
I see your point, but I still think C is the most crucial to verify after refactoring.
MA
Marge 1 year ago
↳ replying to Delfina
I think A is also important to ensure we are not missing any critical paths in the code.
CL
Cletus 2 years ago
↳ replying to Delfina
I agree, C is the safest choice. We need to make sure the results are consistent.
SH
Shenika 2 years ago
B is a bit of a stretch. Better logging is a nice-to-have, but it's not the priJarod concern when refactoring. I'd go with C.
JO
Josphine 1 year ago
↳ replying to Shenika
D is also crucial. We should remove any redundant tests to keep our test set efficient.
WH
Whitley 2 years ago
↳ replying to Shenika
I think A is also important. We need to ensure that the branch coverage is maintained or improved.
DA
Darrel 2 years ago
↳ replying to Shenika
I agree, C is the most important. We need to make sure the results are the same after refactoring.
JU
Justine 2 years ago
D makes sense too. If you've refactored the code, some tests might have become redundant and should be removed to keep the test suite lean and efficient.
SH
Sherly 1 year ago
↳ replying to Justine
D) That tests that have now been made redundant are removed from the test set
CH
Charlene 1 year ago
↳ replying to Justine
C) That they provide the same results as before
EL
Ellen 2 years ago
↳ replying to Justine
A) That the branch coverage is the same or increased
JA
Jarod 2 years ago
I think C is the correct answer. The whole point of refactoring is to improve the code without changing its functionality, so the test results should be the same.
RU
Ruthann 2 years ago
But shouldn't we also check if any tests have become redundant and remove them from the test set?
GE
German 2 years ago
I agree with Jamal. It's important to make sure the refactored code still produces the same results.
JA
Jamal 2 years ago
I think we should always verify that the test cases provide the same results as before.
0/2000 characters

Save Cancel