Chris Ryan
-
http://thephp.cc/dates/2012/webexpoprague/phpunit-best-practices
-
Some of these practices could be good for TDD in general (e.g. in RSpec)
Chris Ryan
http://thephp.cc/dates/2012/webexpoprague/phpunit-best-practices
Some of these practices could be good for TDD in general (e.g. in RSpec)
DIM Wins; | |
DIM Losses; | |
DIM Ties; | |
=IF(((Wins + Losses + Ties) == 0), VALUE(0), ((Wins + (0.5 * Ties))/(Wins + Losses + Ties))) |
/* Helper class */ | |
public sealed class ElementInteractionHelper | |
{ | |
private readonly IJavaScriptExecutor _executor; | |
private const string NgClick = "arguments[0].click();"; | |
public ElementInteractionHelper() { } | |
public ElementInteractionHelper(InternetExplorerDriver driver) |
describe('MyCtrl', function () { | |
var ctrl, scope, mockToaster, mockLog, mockMySvc, invokeController; | |
// Initialize a bare-bones behavior function for each tested service function | |
var mockMySvcSomeFunctionBehavior = function () {}; | |
beforeEach(inject(function ($controller, $rootScope) { | |
mockMySvc = { | |
someFunction: function (success, error) { | |
mockMySvcSomeFunctionBehavior(success, error); |
> phantomjs-prebuilt@2.1.16 install D:\code\MyProjects\POC\VueWebpackPOC\node_modules\phantomjs-prebuilt | |
> node install.js | |
PhantomJS not found on PATH | |
Download already available at C:\Users\tiptonsj\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip | |
Verified checksum of previously downloaded file | |
Extracting zip contents | |
Removing D:\code\MyProjects\POC\VueWebpackPOC\node_modules\phantomjs-prebuilt\lib\phantom | |
Copying extracted folder C:\Users\tiptonsj\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-extract-1528397777270\phantomjs-2.1.1-windows -> D:\code\MyProjects\POC\VueWebpackPOC\node_modules\phantomjs-prebuilt\lib\phantom | |
Writing location.js file |