Open chunyongg opened 3 years ago
In this question. I picked 2 as the answer: Not using camel case with the variable name, and the use of the magic string "reading". The answer given, however, was only 1 (not using camel case). Why is a magic string not considered a coding standard violation?
Duplicate: See #487 and #490
In this question, the justification given was that only unit tests are done by developers. I would like to clarify if this is the case among the options given, or for all types of testing, developers only do unit tests?
Not entirely sure what you mean but only developers do unit tests since they are the ones who know about the implementation. I guess a developer can do system/acceptance testing if it's something like dogfooding? (please correct me if I'm wrong)
Regression testing is a form of system testing done by developers as well. So developers do still do other forms of testing apart from unit testing
I agree with the answers by @sudogene and @junlong4321
For this question, my explanation was unit-testing requires tester to have knowledge of the methods within the class so the tester will have knowledge of the implementation of the code, that is why unit-testing is most likely to be glass-box testing. Is this explanation valid too?
For this question, my explanation was unit-testing requires tester to have knowledge of the methods within the class so the tester will have knowledge of the implementation of the code, that is why unit-testing is most likely to be glass-box testing. Is this explanation valid too?
Yes.
Can look at issue #493 @xinyee20
In this question. I picked 2 as the answer: Not using camel case with the variable name, and the use of the magic string "reading". The answer given, however, was only 1 (not using camel case). Why is a magic string not considered a coding standard violation?
In this question, the justification given was that only unit tests are done by developers. I would like to clarify if this is the case among the options given, or for all types of testing, developers only do unit tests?