stubs   278

« earlier     later »

Advanced Features in Sinon · Ken Powers
In my previous post on testing I covered the basics of testing with Mocha, Chai, and Sinon -- including asynchronous testing and stubbing methods with asynchronous callbacks (such as methods which make a server request). That's all well and good, but sometimes it's more convenient or natural to synchronously manipulate the JavaScript timer or create fake servers to instantly and synchronously respond to requests. Sinon provides the facilities to work such magic -- read on to learn more.
vizicities  mapzen  javascript  testing  debugging  automation  mocha  sinon  mocks  stubs  spies  reference  timers 
april 2015 by robhawkes
Unit Test like a Secret Agent with Sinon.js
The following content comes from the forth module of my Pluralsight course entitled: Front-End First: Testing and Prototyping JavaScript Apps. The rest of the course covers an introduction to Unit Testing, Examples of Hard to Test Code, Mocha (a JavaScript test runner), Grunt (a JavaScript task runner), Mockjax (a way to mock Ajax requests), mockJSON (a way to generate semi-random complex objects for prototyping), and more.
vizicities  mapzen  javascript  testing  debugging  automation  mocha  sinon  mocks  stubs  spies  reference 
april 2015 by robhawkes
Test Doubles: Mocks, Stubs, and More - Testing - objc.io issue #15
A periodical about best practices and advanced techniques for iOS and OS X development.
testing  cocoa  objective-c  ios  iphone  mocking  mocks  stubs  tdd  best-practices 
february 2015 by Sophus12345
luisobo/Nocilla
Testing HTTP requests has never been easier. Nocilla: Stunning HTTP stubbing for iOS and Mac OS X.
objectivec  http  unittests  testing  web  mocks  stubs 
december 2014 by dlkinney

« earlier    later »

related tags

3  accessorizer  agile  amc  analogy  and  angularjs  api  applepay  article  authentication  automation  awesome  bdd  behat  best-practices  bestpractices  bots  boundaries  browser  cag  caringacrossgenerations  chain  chef  chrisdannen  citizenship  clips  cocoa  codeception  config  configuration  constants  content  controllers  coverage  date  datetime  debugging  delicious  dev  development  devise  domestic  dotnet  doubles  dummies  e2e  editors  factories  factory_girl  factorygirl  fakes  fastcompany  fire  framework  frameworks  gems  github  gnu  goos  hacks  howto  http  ifttt  immigration  imported  ios  iphone  jasmine  javascript  javasvript  js  json  jwjnews  library  lightbulb  mac  mapzen  martin-fowler  martinfowler  method  microservices  mocha  mock  mocking  mocks  movies  named-scopes  news  node.js  node  oauth  objective-c  objectivec  objects  omniauth  on  online  opera  osx  pay  paycheck  payroll  php  phpspec  programming  prsndevops  rails  reference  reform  require.js  rest  roadmap  rpsec  rspec  ruby  rubymotion  rubyonrails  screen  screenrc  search  sencha  server  service-oriented  service  setup  silex  sinon.js  sinon  sinonjs  software  softwaredevelopement  specs  spies  spy  starter  storage-project  stub-chain  stub  stubbing  swift  talk  tdd  test  testdoubles  testdrivendevelopement  testing  tests  theaters  time  timecop  timers  tips  to  tools  tricks  tutorial  tutorials  unit-testing  unit  unittest  unittesting  unittests  vcr  vim  vizicities  vocabulary  web  webdevelopment  webmock  wikipedia  women  workers  wsj  xp  xunit 

Copy this bookmark:



description:


tags: