javascript - TDD basics - do I add or replace tests? -


i'm new tdd , working way through this article.

it's clear except basic thing seems obvious mention:

having run first test (module exists), do code before running next one? keep next test includes results first one? delete original code? or comment out , leave current test uncommented?

put way, spec file end long list of tests run every time, or should contain current test?

quoting same article linked in question.

since don’t have failing test though, won’t write module code. rule is: no module code until there’s failing test. do? i write test—which means thinking again.

spec end list of tests run every time check regression errors every additional feature. if adding new feature breaks added before previous tests indicate failing test.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -