Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker時代の分散RSpec環境の作り方

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

 Docker時代の分散RSpec環境の作り方

大江戸Ruby会議06 トーク資料

Avatar for Tomohiro Hashidate

Tomohiro Hashidate

March 20, 2017
Tweet

More Decks by Tomohiro Hashidate

Other Decks in Programming

Transcript

  1. rspec-storage -o オプションを拡張して任意のストレージに出力で きる用にした。 $ rspec -r rspec/storage spec/example_spec.rb \

    -f doc \ -f json -o s3://your-bucket/spec_result.json URIのスキーマと表現により、アダプターを書けば何 にでも出力できる。 (rspec-coreの実装が行儀悪いので一部モンキーパッ チが……)
  2. wrapbox コマンドを渡すとECSのAPIリクエストを構築して、 よしなにコンテナを起動してくれるヘルパー。 default: cluster: ecsr-test runner: ecs region: ap-northeast-1

    container_definition: image: joker1007/wrapbox cpu: 512 memory: 1024 essential: true $ wrapbox ecs run_cmd -f config.yml -e RAILS_ENV=test \ "bundle exec rspec spec/models"