Skip to content

Instantly share code, notes, and snippets.

View montogeek's full-sized avatar

Fernando Montoya montogeek

View GitHub Profile
{
"auto_complete": true,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": ".",
var http = require('http');
var app = http.createServer(function(req,res){
res.setHeader('Content-Type', 'application/json');
res.setHeader('Content-Length', JSON.stringify(json).length);
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
res.setHeader('Access-Control-Allow-Methods', 'GET');
res.write(JSON.stringify(json));
res.end();
});
[DEBUG - 2015-09-03T19:03:09.332Z] Config - init - Configuration => {"ip":"127.0.0.1","port":"4444","hub":null,"logFile":"phantomjs.log","logLevel":"DEBUG","logColor":false}
[INFO - 2015-09-03T19:03:09.346Z] GhostDriver - Main - running on port 4444
[DEBUG - 2015-09-03T19:03:24.250Z] RouterReqHand - _handle - Request => {
"headers": {
"Accept": "application/json",
"Content-Length": "124",
"Content-Type": "application/json;charset=UTF-8",
"Host": "127.0.0.1:4444"
},
"httpVersion": "1.1",
{
"caret_extra_width": 2,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/User/Color Highlighter/themes/base16-ocean.dark (SL).tmTheme",
"copy_with_empty_selection": false,
"default_line_ending": "unix",
"drag_text": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
el link que muestras no son funcional tests, son "Integration Tests", creo que aun no estamos en el mismo canal en eso.
Recuerda, existen tres tipos de pruebas, "Unit Test", "Integration Test" y "Functional Test"
En los unit tests, testeas una simple unidad y TODAS las dependencias son mocks, stubs, etc. PHPUNIT planito
En el integration tests, testeas una clase con todas sus dependencias inyectadas de forma normal. Solamente se hacen mocks the third party APIs o dependencias FUERA de nuestra app. Codeception o el mismo PHPUNIT sirven para esto, entre otros.
En el functional test, testeas, valga la redundancia, en nivel funcional, usualmente usas frameworks basados en PhantomJS / Selenium o cualquier plataforma que consuma tu aplicacion a nivel funcional como si fuera un usuario.
___________________________________________________
( _______________________________________________ )
( / \ )
( | _/_ / _/_ / | )
( | / /_ o _ o _ _ / . . _ o __/ | )
( | <__/ /_<_/_)_ <_/_)_ /_)_<__(_/_/_)_<_(_/_ | )
( | / | )
( \ ' / )
( ----------------------------------------------- )
( \ ^__^ )
env:
travis:
modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=monitores_test'
user: 'root'
password: null
dump: 'tests/_data/dump.sql'
populate: true
"gulp-rev": "Jimdo/gulp-rev#refactor_existing_manifest",
http://daveyarwood.github.io/2014/07/30/20-cool-clojure-functions/
http://martinfowler.com/articles/microservices.html
https://blog.yourkarma.com/why-programming-is-hard
http://daverupert.com/2013/04/responsive-deliverables/?utm_content=bufferafe71&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
http://www.jackcallister.com/2015/01/05/the-react-quick-start-guide.html?utm_source=javascriptweekly&utm_medium=email
{
"color_scheme": "Packages/Base16/base16-flat.dark.tmTheme",
"default_line_ending": "unix",
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"tabs_small": true,