Airbnb.io MobileOpen SourceEventsBlogGithubCareersAirbnb.io Enzyme has moved. Redirecting now to enzymejs.github.io...
Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
import ReactTestUtils from 'react-dom/test-utils'; // ES6 var ReactTestUtils = require('react-dom/test-utils'); // ES5 with npm Overview ReactTestUtils makes it easy to test React components in the testing framework of your choice. At Facebook we use Jest for painless JavaScript testing. Learn how to get started with Jest through the Jest websiteâs React Tutorial. Note: We recommend using React Te
追è¨: å®éã«éç¨ããéã¯ã©ã¤ã»ã³ã¹ã«ã注æãã ãã: å ¬éç¨Dockerã¤ã¡ã¼ã¸ã«Android SDKãå«ããã®ã¯ã©ã¤ã»ã³ã¹éåã¨ãã話 - Islands in the byte stream ä¸è¡ã¾ã¨ã 社å ã®Jenkinsç°å¢ / Travis-CI / Circle-CI ãªã©ãCIãµã¼ãã¹ãã¨ã«ãã«ãè¨å®ã調ã¹ãã®ã«ããããããã®ã§Dockerizeãã¦ã¿ã æå ã¨CIç°å¢ãã¾ã£ããåãã«ãªãã®ã§ä¸åº¦åãããã«ãªã£ããå®å®ãã¦åãããã¯ã ã¨ããããCircle-CIã§è©¦ãã¦åãã åæ OSXã®å ´åãboot2dockerã¨dockerãhomebrewã§å ¥ãã¾ããããboot2dockerã¯dockerãåããããã®VMã¨Linuxã¤ã¡ã¼ã¸ãé©å½ã«æ´ãã¦ããããã¤ã§ãã Dockerfile Dockerfile ã¯ãããªæããsamtstern/android-sdk
ãã㯠Hubot Advent Calendar 2014 ã® 22 æ¥ç®ã®è¨äºã§ãã ã¾ããä»å㯠@bouzuya ã® Hubot é£è¼ã®ç¬¬ 14 åã§ããç®æ¬¡ã¯ã第 1 åã®è¨äºã«ããã®ã§ããã¡ããã©ããã ååã¾ã§ãããã¦ä»å㯠åå㯠ãã¾ããã ãã© Hubot ã®ããã¥ã¡ã³ããèªãã§ã¿ãã ã¨ãããã¨ã§ãHubot ã®ããã¥ã¡ã³ãã«ã¤ãã¦ç´¹ä»ãã¾ããã ä»å㯠Hubot ã¹ã¯ãªããã®ãã¹ãã«ã¤ãã¦ç´¹ä»ãã¾ããã¨ã¦ã軽ã触ããã ãã§ããã å¤ã«ããºã£ã¦ã¼ãã®ãªãã¸ããªã§æãå¤ãã¹ã¿ã¼ãã¤ãã¦ãã¾ã£ã bouzuya/hubot-twada ã©ã¤ã¯ãª Hubot ã¹ã¯ãªãããã¤ããã¾ãããã ã¡ãªã¿ã«ä»åãã generator-hubot 㯠0.2.0 ã«ãã¼ã¸ã§ã³ã¢ãããã¦ãã¾ããé£è¼ä¸ã«ã©ãã©ããã¼ã¸ã§ã³ã¢ããããã¾ããã ã¨ãããã grunt test ãã¤ãã®ãã
æè¿ã® RSpec ã¯ãããã¾ã§ obj.stub(hoge: value) ã¨æ¸ãããã®ãã allow(obj).to receive(:hoge).and_return value ã¨æ¸ããªãã¨ãããªããªã£ããã¨ããæ£æ°ã®æ²æ±°ã¨ã¯æããªããããªå¤æ´ããããããã®ã§ãä½å¹´ãã¶ãã« Test::Unit ã使ã£ã¦ã¿ããã¨ãªãããªä¸ã§ãã RSpec ã¯ããã¹ãã±ã¼ã¹ãå ¥ãåã«ã§ãããããã¹ãã±ã¼ã¹ã example ãã¯ã©ã¹ãã¡ã½ããã§ã¯ãªããæååã§èªç±ã«æ¸ããã¨ãã§ãããããã®ãè¯ãã£ãã®ã§ãããæè¿ã® Test::Unit ã§ã¯ãããã§ããããã«ãªã£ã¦ãã¾ãã [ruby-list:48926] [ANN] test-unit 2.5.2 ãã®ãªãªã¼ã¹ã¯ã¨ã¿ãããã«ä½¿ã£ã¦ããããããã«æ¹è¯ãããªãªã¼ ã¹ã§ããæ°ãã追å ãã--locationã¯RSpecã®--line_number
This article is about An automated testing protocol. For the network tunnel driver, see TUN/TAP. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Test Anything Protocol" â news · newspapers · books · scholar · JSTOR (October 2017) (Learn how and when t
2008å¹´03æ27æ¥03:00 ã«ãã´ãªArtLightweight Languages ãåãã³ã¼ããã®åãã£ã¦ä½ã - TAPã®ã¹ã¹ã¡ åé¡ã¯ããã®ãåãã³ã¼ããã®å®ç¾©ã ã誰ãæ¸ãã¦ãåãã³ã¼ããã¯å¤§äºãªãã¨ãªã®ã - ã²ãããã blog ã§ããã誰ãæ¸ãã¦ãåãã³ã¼ããã«ããã£ã¦ã®ã¯ãããããç¡çã ã¨æããã ããããããã£ã¦ãããããããã¥ã¡ã³ããããããæ¸ããã¦ãããããããªã³ã¼ããæ¸ããã¤ã¯ãã¦ãç·åãã¹ãããã¨ãã«ãç¾å ´ã¯çãä¸ãããã®ãããç¨åº¦ã®è¦æ¨¡ä»¥ä¸ã®ããã¸ã§ã¯ããªããã©ãã§ããããªæããããªããã¨æãã¾ããåããæ¸ãæ¹ããããªããã°ãªããªãã®ã? çµæããåãããªãããã®ã? ããå¾è ã ã¨ããããå®ã¯ éè¦ãªã®ã¯ãã誰ã§ãã¡ã³ããã³ã¹ã§ããã³ã¼ããã«ãããã¨ããã®ããã«ãã³ã¼ãã£ã³ã°è¦ç´ã¯ããã¡ãã¨æ±ºãã¦ã¿ããªã§å®ãããã以ä¸ã¯ããã¡ãã¡ã«ç¸ãå¿ è¦ã¯ãªãã ããå¿
ããã°ã©ãã³ã° (iOS, JavaScript, Jenkins, Sikuli) ã¨MacãiPhoneãªã©ã®è©±é¡ãä¸å¿ã®ããã° Sikuliã§ã¯JUnitãã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ããGUIãã¹ããè¡ããã¨ãã§ãã¾ãã®ã§ãiOSã·ãã¥ã¬ã¼ã¿ã§ã®GUIãã¹ãã試ãã«æ¸ãã¦ã¿ã¾ããã ãªããSikuliã¹ã¯ãªããã®ç°¡åãªä½¿ãããã«ã¤ãã¦ã¯ãååã®è¨äºãSikuliã¹ã¯ãªããã§ã®UIæä½èªååã試ãã¦ã¿ãããåç §ãã¦ãã ããã ã¦ããããã¹ãã®æ¸å¼ Sikuliã§ã®ã¦ããããã¹ãã®æ¨æºæ¸å¼ã次ã«ç¤ºãã¾ãã ããããã¦ããããã¹ã風ã§ãããæé»ã«å¤å´ã§ã¯ã©ã¹å®£è¨ãã¦ããã¨æã£ã¦ããã¿ããã§ãã¯ã©ã¹å®£è¨ã¯ä¸è¦ã§ãã def setUp(self): // ãã¹ãéå§åå¦ç def tearDown(self): // ãã¹ãçµäºå¾å¦ç def testA(self): // ãã¹ãA def tes
ã¯ã©ã¤ã¢ã³ããµã¤ãJavaScriptã§Backbone.jsã¨ãã®ãã¬ã¼ã ã¯ã¼ã¯ä½¿ãã¤ã¤require.jsã§ãã¡ã¤ã«åå²ãã¤ã¤ãæ´ã«ããããCoffeeScriptã§æ¸ãã¦ããå ´åã«ãã¹ããæ¸ããã¨æã£ãã軽ãçºçãããã«ãªã£ãã®ã§ãä¸ã¤ãã¤è§£æ±ºãã¦ãããã¨ã«ããã å人çãªè¶£å³çãéã¿ã¦åææ¡ä»¶ã¯ä»¥ä¸ã®ãããªæãã«ãªã£ãã ã»CoffeeScriptã§ãåããããªæ§æã§ä½¿ãã ã»ãã¡ã¤ã«åå²ã§ãã ã»ãã¹ãããã©ã¦ã¶ä¸ã§ãåä½ãã èªååã¯ä»åã®ç¯çã«ã¯ãªãã å¾ãããã¹ããæ¸ãã¥ããã£ãã¨ãããã¨ã«ç«¯ãçºããã®ã§ããã¹ãé§åã§éçºããã % bower install mochamochaãé¸ãã çç±ã¯ãexpect.jsã¨ãQUnitã¨ãã¨çµã¿åãããããããªãã¨ã¨ããã©ã¦ã¶ã¨ã³ã³ã½ã¼ã«ä¸¡æ¹ã§åãããã®ã¨ãNodeã§ã使ããããã npmãããªãbowerã§ã¤ã³ã¹ãã¼ã«ãã¦ããã®
â [rack][ruby] rack middleware ã®ãã¹ã æè¿ã¯ test-unit ãã使ã£ã¦ãªãã®ã§ test-unit 㨠rack-test ã使ã£ã¦ rack middleware ã®ãã¹ããæ¸ãè¡ãã¡ã¢ã£ã¦ãããä¾ãã° response.body ã« foo ã¨ããæååã追å ãã middleware ã®ãã¹ããªããããªæãã require 'test/unit' require 'rack/test' require 'rack-foo' class TestApp def call(env) [ 200, { 'Content-Type' => 'text/html' }, ['<html><head></head><body></body></html>'] ] end end class FooTest < Test::Unit::TestCase i
ãµã¼ãã¼ã«nodeã使ãã¤ã¤TDDãããããã«nodeunitã使ã£ã¦ã¿ãã試ãã«mongoDBã®æä½ãç´åã§è¨è¿°ã§ããã©ããã¼ãä½ã£ã¦ãããã®ãã¹ãã±ã¼ã¹ã3ã¤æ¸ããã ãã¹ãã³ã¼ã var mongodb = require('mongodb'); var Transaction = require('./mongotransaction').MongoTransaction; var db, case1 = {}; case1.setUp = function(next) { var server = new mongodb.Server("127.0.0.1", 27017, {}); db = new mongodb.Db('test', server, {}); next(); } case1["Open and close DB"] = function(test) { ne
I don't intend to do any further work on babushka (in fact I haven't done so in some time). I had the idea and started working on the project in 2009. At the time docker and even vagrant were yet to be conceived. In part I wanted to build a simpler, small-scale alternative to the likes of chef and puppet, and in part it started as a bit of an experiment in how far I could hone a ruby DSL and to wh
Boostãã¹ãã©ã¤ãã©ãª: ã¦ããããã¹ããã¬ã¼ã ã¯ã¼ã¯ åå ¥ãã¹ãã«ãã£ã¦ã顧客ã¯æºè¶³ã§ããã ã½ããã¦ã§ã¢ãæä¾ãããã¸ãã¹ä¾¡å¤ãã顧客ããéãæããã㨠æããããªã¬ãã«ãæºè¶³ãããã¨ãåããããã§ããã ã¦ããããã¹ãã«ãã£ã¦ããã°ã©ãã¯æºè¶³ããã ããã°ã©ããæãéãã«ã½ããã¦ã§ã¢ãåä½ãããã¨ãä¿éããããã§ããã XPã®æ ¼è¨ ãã¼ã ã¤ã³ãããã¯ã·ã§ã³ ãã¹ãå ¥é ãã¬ã¼ã ã¯ã¼ã¯ã³ã³ãã¼ãã³ã ãã¹ãã±ã¼ã¹ ãã¹ãã¹ã¤ã¼ã ãã¹ãçµæ ãã¹ããã° ãã¹ãã¢ãã¿ã¼ ãã¬ã¼ã ã¯ã¼ã¯ã®çµ±å ãã¬ã¼ã ã¯ã¼ã¯ã®ãã©ã¡ã¼ã¿ ãã¬ã¼ã ã¯ã¼ã¯ã®ã³ã³ãã¤ã« æ¡å¼µ ãµã³ãã«ããã¹ãããã°ã©ã çè« è¨è¨ é¢é£äºé : ãã¹ããã¼ã« ã¤ã³ãããã¯ã·ã§ã³ Boostãã¹ãã©ã¤ãã©ãªã®ã¦ããããã¹ããã¬ã¼ã ã¯ã¼ã¯ã¯ ãã¹ããã¼ã« ã使ã£ããã¹ãã±ã¼ã¹ãä½æãããããã ãã¹ãã¹ã¤ã¼ãé層å ã«æ´çããã®
è¤æ°ã®ããã»ã¹ãç¸äºã«é£æºãã¦åãã·ã¹ãã ã®ãã¹ããèªååãããã æ®éã«æ¸ãã¨ããã»ã¹ãèµ·åãããã¨çµäºããã¾ã§å¾ ã£ã¦ãã¾ãã®ã§ãè¤æ°ã®ããã»ã¹ãåæã«èµ·åã§ããªãã¦å°ãã¾ãã&ãä»ãã¦ããã¯ã°ã©ã¦ã³ãã§èµ·åãããã¨ãå¾ã§çµäºãããã¨ããã¾ã ps aux | grepãã¦PIDã調ã¹ã¦ãã·ã°ãã«ãé£ã°ãã¦ããã°ãããã¼ãªã³ã°ãã¦æ¬å½ã«çµäºããã¾ã§å¾ ã¤ããªãã¦ãã¨ã«ãªã£ã¦é¢åã§ãã ããããèµ·åãã¦ãããã°ããã¯åæåå¦çãèµ°ã£ã¦ããã®ã§ãæ¨æºåºåã«ãstartedãã¨è¡¨ç¤ºãããã¾ã§å¾ ã¡ããã£ãããã¾ãã ãã®ãããããã¾ãæ±ãããã®ã©ã¤ãã©ãªãæ¸ãã¦ã¿ã¾ãããâãããªæãã§èªååã§ãã¾ãã #!/usr/bin/env ruby require 'chukan' include Chukan srv = spawn("server -arg1 -arg2") # 'server' ã³ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}