Skip to content

Instantly share code, notes, and snippets.

@jendiamond
Last active September 23, 2015 04:15
Show Gist options
  • Select an option

  • Save jendiamond/810fb360726f33ea6ce4 to your computer and use it in GitHub Desktop.

Select an option

Save jendiamond/810fb360726f33ea6ce4 to your computer and use it in GitHub Desktop.

Intro Kurtis to Judson

testing against frequently changing APIs

  • pull request specific intances heroku for json

  • version apis

  • contact tests

  • talk to an external dependency

  • isolate the changes

http://matthewlehner.net/rails-api-testing-guidelines/ http://blog.carbonfive.com/2012/03/18/how-to-test-external-apis/ https://robots.thoughtbot.com/how-to-evaluate-your-rails-json-api-for-performance-improvements http://www.mikeball.us/blog/rails-api-integration-tests/ http://stackoverflow.com/questions/30852006/the-correct-way-to-version-rails-3-apis

###JSON server mock servers

REACT Tutorials

string to hash http://www.java2s.com/Code/Ruby/String/Convertastringtoahash.htm

Choosing between unit and integration tests

unit test - spring

      sytemtest
  acceptance (tests you have most confidence in)
integration

unit tests (most important?)

good testing pattern use all

testing apis

smoke testing

  • http://blog.quickpeople.co.uk/2012/09/11/failing-fast-in-rails-with-a-smoke-test-initializer/
  • Smoke testing (electrical) looking for smoke when powering electrical items for the first time
  • Smoke testing (mechanical) the practice of using smoke to test for leaks
  • Smoke testing (software) trying the major functions of software before carrying out formal testing
  • Smoke testing (lean startup) testing for market demand of a value proposition prior to building a functioning product or service
  • Theatrical smoke and fog#Smoke testing ensuring smoke machines will not set off smoke alarms

humans - kaos engines

if you change the implementatoin but not the api the tests should still pass

concurrency - Rob Pike

race condition - an undesirable situation that occurs when a device or system attempts to perform two or more operations at the same time, but because of the nature of the device or system, the operations must be done in the proper sequence to be done correctly. https://en.wikipedia.org/wiki/Race_condition

background workers - https://ryanboland.com/blog/writing-your-first-background-worker/ https://www.ruby-toolbox.com/categories/Background_Jobs https://devcenter.heroku.com/articles/background-jobs-queueing

Junior to Hired

Translate what you know to the new thing.

understand fundemental http spec puts request to endpoint aplly practices to a queu set list array rudimentary design patterns singleton - what does it mean

explore thing about the satc

what is Active Record doing? Design Patten orm positives and negatives of active record why is it doing that? http spec

similarities through looking at different languages curiosity and ownership gang of four aptitude solve problem replicate a pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment