We use the build in coverage application in TeamCity 6 (about to upgrade to 7.1)
If we wish to see the code coverage (or other metrics) of a particular build it is fine as we can navigate to that build, but it would be great if we could pluck out a few interesting metrics from all/some of the current projects/build configurations and display them…
Hello, I have a simple project on C#.NET and have written it in Visual Studio 2010. I am a newbie in C# and Visual Studio.
I have written some unit tests, and they pass ok, but how can I test code coverage?
Thanks in advance.
Once you’ve done a number of SQL Code-reviews, you’ll know those signs in the code that all might
not be well. These ’Code Smells’ are coding styles that don’t
directly cause a bug, but are indicators that all is not well with the code. .
Kent Beck and Massimo Arnoldi seem to have coined the phrase in the "OnceAndOnlyOnce"
page of…
As some of you iPhone developers know, Objective-C can be a verbose language. Long, descriptive variable and method names are the norm. I'm not complaining, it makes code easier to read and code completion makes it easy to type. But damn!
Check out this method name for getting a cell in a table view:
-(UITableViewCell…
I have been given the role to improve development in our company. The first thing I wanted to start was code reviews since that has never been done here before.
There are 3 programmers in our company. I am a web programmer, my known languages are mainly PHP, ActionScript and JavaScript. The other 2 developers write…
There has been a few remarks about white space already in discussion about curly braces placements.
I myself tend to sprinkle my code with blank lines in an attempt to segregate things that go together in "logical" groups and hopefully make it easier for the next person to come by to read the code I just produced.
…
I started working at my current job about 8 months ago, and its been one of the best experiences I've had as a young programmer. It's a small company, and both my co-developers are brilliant guys.
One of the practices that they both have been encouraging is lots of code-reuse. Our code base is mainly C#, and we're…
Code Review.SE is great when you need feedback on a precise, short piece of code.
But where to get similar feedback about the code itself when:
you have thousands of LOC,
don't have colleagues in your workplace ready or willing to review the code¹,
don't have thousands of dollars to spend for a professional…
I usually try to follow the advice of the book Working Effectively with Legacy Code. I break dependencies, move parts of the code to @VisibleForTesting public static methods and to new classes to make the code (or at least some part of it) testable. And I write tests to make sure that I don't break anything…
I like my code being in order, i.e. properly formatted, readable, designed, tested, checked for bugs, etc. In fact I am fanatic about it. (Maybe even more than fanatic...) But in my experience actions helping code quality are hardly implemented. (By code quality I mean the quality of the code you produce…
This is the third (and last) post in a series that explains different approaches to map an inheritance hierarchy with EF Code First. I've described these strategies in previous posts:
Part 1 – Table per Hierarchy (TPH)
Part 2 – Table per Type (TPT)In today’s blog post I am going to discuss Table per…
Memory for managed code is handled by the garbage collector, but if you use any kind of unmanaged code, like native resources of any kind, open files, streams and window handles, your application may leak memory if these are not properly handled. To handle such resources the classes that own…
personally I found cobertura is very easy to configure in maven and it generate decent looking report with little or more coloring scheme which I like personally than emma. So +1 for cobertura. what you guys have experienced ?
Tier One Defined
By Lyle Ekdahl, Oracle JD Edwards Group Vice President and General Manager
I recently became aware of the latest Sea Monkey Sales & Marketing tactic. Wait now, what is Sea Monkey Sales & Marketing and what does that have to do with
ERP? Well if you grew up in…
I'm interested in learning about the available choices of high-quality, stand-alone source code formatters for Java.
The formatter must be stand-alone, that is, it must support a "batch" mode that is decoupled from any particular development environment. Ideally it should be independent of any…
It's been quite a few years since Code Complete was published. I really love the book, I keep it in the bathroom at the office and read a little out of it once or twice a day.
I was just wondering for the sake of wonderment, what kinds of things need to be added to Code Complete 3e, and for…
In every area of life there are people with some bad habits or misbehaviors that affect the work process. Software development is also not free of this kind of people. Today I will introduce you code wanderer. Who is code wanderer? Code wandering is more like bad habit than serious…
Short Question
Does a cost-effective tool / workflow exist to facilitate code reviews in a small team? More specifically, a small team that relies on post-commit code reviews.
Background
Our team currently consists of 3 full time and 1 part time software engineers, with plans on…
I need to search the web for sites that are in our industry that use the same Adwords management company, to ensure that the said company is not violating our contract, as they have been accused of doing.
They use a tracking code in the template of every page which has a certain…
In every area of life there are people with some bad habits or misbehaviors that affect the work process. Software development is also not free of this kind of people. Today I will introduce you code wanderer. Who is code wanderer? Code wandering is more like bad habit than…
I've recently been promoted into managing one of our most important projects. Most of the code in this project has been written by a partner of ours, not by ourselves.
The code in question is of very questionable quality. Code duplication, global variables, 6-page long…
Is it possible to write a C# assembly which when loaded will inject a method into a class from another assembly? If yes, will the injected method be available from languages using DLR, like IronPython?
namespace IronPython.Runtime
{
public class Bytes :…