-
Recent Posts
Archives
Categories
Meta
Tag Archives: stub
Automated software testing part 6: stubbing
Previous: part 5 You can also find the code below in the src/unit-test-4 dir of my blog code repository. In the previous post, we talked about spying. With a test spy, you can spy on method calls and see how … Continue reading
Posted in software development, testing
Tagged amsterdam, javascript, node.js, sinon, stub, stubbing, testing, unit testing, weather
Leave a comment
Checking log4js output in your node.js testsuite
This post will teach you how to test log4js log statements in your code. You can also find the code below in the `src/log4js-unittest` dir of my blog code repository. Let’s say that we have written this simple node.js module, foo.js . … Continue reading
Posted in JavaScript, node.js, software development
Tagged log output, log4js, logger, mocha, mock, node, node.js, npm, sinon, spy, stub, test, test log output, test suite, unit test
Leave a comment