Tag Info

New answers tagged

5

You cannot prevent someone from calling your URL directly. What you can do, however, is reject invalid requests. You can add a unique key to each response which is then returned in the next request. If a request has an invalid or missing key, ignore it. This is the basic idea behind a session. In fact, you may be able to use sessions in your framework to ...


2

The important thing is to distinguish between TDD and ATDD. The AT there stands for "acceptance tests", and this refers to development where you first start with an acceptance test, which is likely to test the entire stack. This is also sometimes called "outside-in test driven development". When people talk about TDD, the "T" there probably refers ...


7

Is there a technique for unit testing both components in one run? That would actually be the opposite of unit testing - unit testing, especially in TDD style, means to test your components in isolation. Thus the answer is yes, "run separate test suites for the JS and PHP sections", otherwise it is not unit testing and not TDD. Of course, automated ...



Top 50 recent answers are included