I am working on an issue but kind of lost, so I decided to work on writing some test cases to reproduce the issue first. Is it acceptable to put test cases into tests even if I didn’t come up with a solution yet? Thank you.
I’m not sure I understand what you are asking. If you have a problem, go ahead and describe the situation as best you can.
If you are talking about test-driven development, yes, tests can be written before their solutions.
Certainly! It’s totally okay to write test cases even if you haven’t figured out a solution yet. Writing test cases helps you understand the problem, focus on what you want your code to do, and later, it helps you make sure your solution works correctly.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.