DEV Community


Discussion on: When do you write your tests?

lrn2prgrm profile image
J Armando Cordova • Edited

I do test but i write test last. No TDD.

I am writting a react app and I am still in doubt about inlining styles or sending them to the scss file. I change my mind about the of internals and add and remove instance variables until I am happy with my code.

Since my progress is that caothic writting test would only slow me that. Maybe pseudocode test would be fine but i dont do that. I just focus on my file maybe I write a some of guiding comments that I remove as my program progresses.

If my process wouldn't change that much I could write test first. Maybe i will eventually do so. This project is new and maybe thats why my process is so caothic.