Tech IndustryMar 23, 2019
GaprandUser

Testing whiteboard code for onsite interviews?

I have an onsite Monday with Microsoft and I heard they love test cases. I work somewhere that practices TDD, but writing out unit tests during an onsite feels like it would take too long. How do you usually handle testing in a coding interview? Could you just say "when writing my test cases, I would test X, Y, and Z cases" or write out a whole test suite?

Add a comment
Microsoft cUwPkF Mar 23, 2019

Just mention them

Microsoft rgugvv Mar 23, 2019

I did TDD in my Microsoft interview an I got selected because of that

Gap randUser OP Mar 23, 2019

So you wrote out the test cases first? Or just mentioned how you'll test? Did you feel like it took too much time?

New
errfileno Mar 23, 2019

Two column table. Left side input right side expected output. Add values before you get started with a solution -- be sure to identify edge-case inputs here. Then use them to step through your solution as you go to make sure your solution conceptually arrives at the expected output.

Gap randUser OP Mar 23, 2019

I like this!!

Apple tilt okay Mar 23, 2019

I’ll see how well you execute this steps in your next interview :)