Classes generated by the CoffeeScript translator aren't traced, for example
class Foo
constructor: (x, y) ->
@z = x + y
method: ->
# some code
@z
f = new Foo(1,2)
f.method()
generates
+ Foo = function(){
+ function Foo(x, y) {
- this.z = x + y
+ }
+ Foo.prototype.method = function() {
- ...
- return this.z
+ }
+ return Foo
+ }();
The lines marked with "-" are not shown as covered even though they have been
executed.
Original issue reported on code.google.com by
funkycoder@gmail.comon 17 Nov 2011 at 8:38