Posts

Showing posts with the label Unit Testing

New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

My Meet.JS Presentation

Image
How to Test? Is unit testing really helpful? My presentation form last Meet.JS:  http://goo.gl/u7w61 (in Polish) Presentation is about Testing, not only about JavaScript, but in general. I must admit that I was influenced by  inventing-on-principle by Bret Victor Hopefully this presentation encourage people to think about testing as a way to speed up development, not as a  cost :-) If you attended last Meet.JS let me know what you think, I wasn't as good as Bret so I will be glad for comments how to be better :-)

JavaScript UnitTesting with JSDev

JSDev is shiny new project from Douglas Crockford. With JSDev it is easy to write UnitTest within file that will be tested. JSDev uses comments and command line scripts to uncomment your test code and run tests. This is in my opinion interesting and easy. Only disadvantage is coding within comments (or comment test code when it's ready). But if editors will understand this comment it would be really powerful. With Node.js it will be easy to execute JS without browser. Watch screencast at NetTuts+ to see it in action: http://net.tutsplus.com/tutorials/javascript-ajax/meet-crockfords-jsdev/ Description:  https://plus.google.com/118095276221607585885/posts/CTZ7BNx7a8z Repository:  https://github.com/douglascrockford/JSDev

PHPUnit from sources in WAMPServer and NetBeans

Tutorial how to install PHPUnit in WAMPServer on Windows and how to make it working in NetBeans 7.1 Disclaimer: If You can use PEAR it would be much easier! :) 1: Install WAMPServer:  http://www.wampserver.com/ 2: Checkout repositories mentioned at the bottom of page:  https://github.com/sebastianbergmann/phpunit I created folder "includes" in PHP directory. mkdir phpunit && cd phpunit git clone git://github.com/sebastianbergmann/phpunit.git git clone git://github.com/sebastianbergmann/dbunit.git git clone git://github.com/sebastianbergmann/php-file-iterator.git git clone git://github.com/sebastianbergmann/php-text-template.git git clone git://github.com/sebastianbergmann/php-code-coverage.git git clone git://github.com/sebastianbergmann/php-token-stream.git git clone git://github.com/sebastianbergmann/php-timer.git git clone git://github.com/sebastianbergmann/phpunit-mock-objects.git git clone git://github.com/sebastianbergmann/phpunit-selenium.git git clon...

Easy Unit Testing

Recently I read article about Unit Tests:  http://blog.tabini.ca/2011/09/the-easiest-way-to-add-unit-test-to-your-application/ This is more about how to deal with application that already exists, and works. I totally agree with author, there is no point in sitting for three months only to add them! But adding them while working is much smarter! I agree that TDD is great, but this is good if You know what You want to build. I used to build prototype to get  idea how it can work and after that refactor it, and add features until it is good.