Though code is used for test cases I would consider it planning. Especially in a TDD/BDD development process because you're taking the time to define what/how/where/when and why the implementation you'll write after works. Just my $0.02.
I agree TDD/BDD is the result of good planning and the byproduct is a coverage of cases into a application skeleton or bounding box.
Right in spot. I spend a lot of time in test files. It is not actual development, but not planning too. It is something in between.