View Makefile
# Using https://github.com/nakiostudio/xcov
.PHONY: test-cov
test-cov:
@swift package generate-xcodeproj
@xcodebuild -scheme MYSCHEME -derivedDataPath .build/xcode -enableCodeCoverage YES test
@xcov --scheme MYSCHEME --configuration Debug --derived_data_path .build/xcode --skip_slack --markdown_report
@rm -rf .build/xcode
@open xcov_report/index.html
View Backbone.ComputedPropertiesModel.js
/*global _, Backbone*/
// By Martin Angers (PuerkitoBio)
// This should be inside a module pattern. Defines a base Model class, could/should be merged with your
// own base Model.
// Dependencies: underscore (_) and Backbone.
var ComputedProperties = function(model) {
this.model = model;
this.properties = {};