Posts

Showing posts from October, 2013

Calculate Code Metrics - Way to assert your code

Calculate Code Metrics: Whenever we write any code, we will refactor and optimize the code for better performance. Really we cannot assert our code is optimized or not, since we just did what we know about code metrics.  Visual Studio provides an option to assert our code metrics. In Solution explorer, right click on solution or project file gives you the “ Calculate Code Metrics ” option.  You can check and refactor your code by using this option. Code metrics is a set of software measures that provide developers better insight into the code they are developing. By taking advantage of code metrics, developers can understand which types and/or methods should be reworked or more thoroughly tested. Development teams can identify potential risks, understand the current state of a project, and track progress during software development. Maintainability Index:  Calculates an index value between 0 and 100 that represents the relative ease of maintaining the code. A ...

BDD - Acceptance Test Driven Development

Image
Acceptance Test Driven Development What is BDD: BDD is an agile software development technique that encourages collaboration between developers, QA, and non-technical or business participants in a software project. It's more about business specifications than about tests. You write a specification for a story and verify whether the specs work as expected. The main features of BDD development are outlined below:   A testable story (it should be the smallest unit that fits in an iteration) The title should describe an activity The narrative should include a role, a feature, and a benefit The scenario title should say what's different The scenario should be described in terms of Givens, Events, and Outcomes The givens should define all of, and no more than, the required context The event should describe the feature   Advantage of BDD:   The first advantage is that this domain language is usable/understandable by domain experts as well. Given that you e...