What is the difference between Unit, Integration, Regression and Acceptance Testing?

Briefly: Unit testing – You unit test each individual piece of code. Think each file or class. Integration testing – When putting several units together that interact you need to conduct Integration testing to make sure that integrating these units together has not introduced any errors. Regression testing – after integrating (and maybe fixing) you … Read more

TDD / BDD with React.js? [closed]

Those helped me get started: React TDD Guide Using Test Driven Development with React.js to Add Multi-Select to the Drag and Drop Component React TDD Example: Unit Testing and Building a React Component With Jest, Gulp and React Test Utils Testing Flux Applications Awesome React – testing Also worth looking at Shallow Rendering

How to implement TDD in ASP.NET WebForms

Microsoft introduced ASP.NET MVC because they thought they could make money from an untapped market – those who feel that Web Forms are too “heavyweight”, and who are programming using a lighter-weight framework. This includes those who are accustomed to the MVC paradigm. It also includes those who couldn’t figure out how to do unit … Read more

How do I unit test a custom ActionFilter in ASP.Net MVC

You just need to test the filter itself. Just create an instance and call the OnActionExecuted() method with test data then check the result. It helps to pull the code apart as much as possible. Most of the heavy lifting is done inside the CsvResult class which can be tested individually. You don’t need to … Read more

Experiences with Test Driven Development (TDD) for logic (chip) design in Verilog or VHDL

I write code for FPGAs, not ASICS… but TDD is my still my preferred approach. I like to have a full suite of tests for all the functional code I write, and I try (not always successfully) to write testcode first. Staring at waveforms always happens at some point when you’re debugging, but it’s not … Read more

How do I add a fakes assembly in VS 2012 Professional RC?

Update: VS2012 Update 2 will include Fakes support in Premium. See http://blogs.msdn.com/b/bharry/archive/2013/01/30/announcing-visual-studio-2012-update-2-vs2012-2.aspx I asked this question in the Microsoft Connect portal…and the answer is disappointing: The RC documentation was incorrect. Fakes are available only in VS Ultimate. I have passed your concerns on the Fakes team. At the moment, we don’t have any information about … Read more

TDD FIRST principle

It’s not Repeatable as not everyday is Tuesday 🙂 If you run this test on Monday you will get one result, if you run it on Tuesday, a different one.