You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
テストダブル (Test Double) とは、ソフトウェアテストにおいて、テスト対象が依存しているコンポーネントを置き換える代用品のこと。ダブルは代役、影武者を意味する。 テストを実行するには、被試験システムに加えて、テスト対象が依存するコンポーネント (DOC; Depend-On Component) が必要になる。しかし、依存コンポーネントは、常に利用できるとは限らない。依存コンポーネントがテスト環境で利用できない理由には、次のようなものが挙げられる[1]。 入手できない。 テストで使いたい結果を返さない。 実行に時間がかかるなどの、望ましくない副作用がある。 こういった問題を回避するには、依存コンポーネントを、テスト用のコンポーネントと入れ替えるテクニックが利用できる。この代用のコンポーネントを、テストダブルと呼ぶ。 ジェラルド・メサローシュは、テストダブルのパターンとして、次の
TL;DR Headless Chrome is shipping in Chrome 59. It's a way to run the Chrome browser in a headless environment. Essentially, running Chrome without chrome! It brings all modern web platform features provided by Chromium and the Blink rendering engine to the command line. Why is that useful? A headless browser is a great tool for automated testing and server environments where you don't need a visi
Lesser-known features of go test Most gophers know and love go test, the testing tool that comes with Go’s official gc toolchain. It is quite possibly the simplest thing that works, and that is beautiful. They know that running go test runs the tests for the package in the current directory, looking for *_test.go files, and within those files, looking for functions following the TestXxx(*testing.T
Local Unit Testing for Go Stay organized with collections Save and categorize content based on your preferences. Local unit tests run inside your environment without accessing remote components. App Engine provides testing utilities that use local implementations of Cloud Datastore and other App Engine services. The development services simulate the behaviour of the real service locally for testin
appengine ja night #35の発表資料です。 http://gcpja.connpass.com/event/44024/
ユニットテストがしにくい状態となってるコードをTestiumを使ったE2Eテストを書いてリファクタリングしてみる話です。 例えば、以下のようなjQueryで書いたコードは外(テストコード)から取り出すポイントがないので、ユニットテストを書くのは難しいと思います。(そもそもViewのコードなので) 特定のバージョンでの変更点を簡単に確認できるよう、 「Aの列のラジオボタンを選ぶと同じ行より一つ下にあるBの列のラジオボタンを自動で選ぶ」 という補助機能 $(document).ready(function () { // seq: シーケンス番号 $.each(["new_version", "old_version"], function () { $("input[name='" + this + "']").each(function (idx, elem) { if (idx == 0
テストしやすいGoコードのデザイン golang.tokyo #2 12 December 2016 Taichi Nakashima 言いたいこと 明示的であれ! 2 whoami @deeeet / @tcnksm (GitHub) http://deeeet.com A PaaS Dev&Ops (Using go for CLI tool, API, Batch jobs) 3 OSS Tools gcli - The easy way to build Golang command-line application ghr - Create Github Release and upload artifacts in parallel Packages go-httpstat - Go package for tracing golang HTTP request latency
【de:code 2020】 レガシーシステムをデジタルの世界へ! Power Automate UI フロー入門
Artificial intelligence stands at the center of humanity’s most consequential challenge: reducing greenhouse gas emissions and transitioning to a sustainable future. Research indicates that strategic AI deployment could […] Multimodal artificial intelligence—systems that process, integrate, and reason across multiple types of data simultaneously—represents a fundamental evolutionary step beyond th
package main import ( "database/sql" "flag" "fmt" "os" "reflect" "sync" "testing" "github.com/ToQoz/gopwt" "github.com/ToQoz/gopwt/assert" ) func TestMain(m *testing.M) { flag.Parse() gopwt.Empower() // magic happens os.Exit(m.Run()) } func TestWithMessage(t *testing.T) { var receiver *struct{} receiver = nil assert.OK(t, receiver != nil, "receiver should not be nil") } func TestWithTestingRun(t *
GitBucketがMySQL、PostgreSQL対応したのでマイグレーションのテストをMySQLやPostgreSQLで実行できるようにしたいなぁと思って方法を考えています。 テスト用のDBを立てたりDockerを使ったりするのが一般的な方法なのではないかと思いますが、Javaで利用可能な組み込みMySQLなんていうものも存在するようなので試してみました(以前@makingに教えてもらいました)。 github.com 使い方はとても簡単で、Mavenの依存関係を追加して <dependency> <groupId>com.wix</groupId> <artifactId>wix-embedded-mysql</artifactId> <version>1.0.3</version> <scope>test</scope> </dependency> こんな感じで使えます。 Mysq
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く