Friday, November 17, 2006

No really, post DO need titles

Yesterday, I moaned about issues I had with JsUnit and IE. Today, it's FireFox's turn. Actually, like yesterday, this is just a caching issue. Because JsUnit loads JavaScript files from within JavaScript, it seems to hit some caching issues. For IE, these show up in that updating the JavaScript file that is the test file doesn't actually update the file that is run in JsUnit because the old version is cached. For FireFox, this shows up in that the file that the test file is testing is cached. (That's right, I've actually started doing some JavaScript TDD'ing.)

So in FireFox, the code being tested is cached and only clearing the cache will re-load the code. In IE, the tests themselves are cached and..., but I've beat the horse to death by now.

So, how do people manage to do TDD with JavaScript? Are they actually doing it? Have I gone about it in the wrong way?

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home