タグ

2018年10月4日のブックマーク (6件)

  • Test splitting and parallelism - CircleCI

    Use parallelism and test splitting to: Reduce the time taken for the testing portion of your CI/CD pipeline. Specify a number of executors across which to split your tests. Split your test suite using one of the options provided by the CircleCI CLI: by name, size or by using timing data. If you are interested to read about concurrent job runs, see the Concurrency overview page. Pipelines are often

    Test splitting and parallelism - CircleCI
    iga_k
    iga_k 2018/10/04
    並列実行
  • database.ymlのhostで{localhost, 127.0.0.1}を指定したときの違い - kitak blog

    MySQL4でレコードの大量削除の検証がしたくて、Railsでもにょもにょやっていたのですが、 MySQL4とmysql2 gem の組み合わせの問題でハマりました。 arproxyを使うと解決できるんですけど、それは後日に。 もうひとつハマったのが、database.ymlのhostの指定でlocalhostと127.0.0.1を指定したときの違い。portを指定しているときは両方TCP/IPでの接続になるのかな、と思っていたのですが、おおはずれ。 こんなかんじでstraceをとってみると sudo sh -c 'strace -e connect -t bundle exec rake db:migrate' localhostの場合は 13:44:33 --- SIGCHLD (Child exited) @ 0 (0) --- 13:44:37 connect(8, {sa_fam

    database.ymlのhostで{localhost, 127.0.0.1}を指定したときの違い - kitak blog
    iga_k
    iga_k 2018/10/04
    kitak先生の資料を読んで勉強している
  • Introduction · rspec-style-guide

    RSpec スタイルガイド これはなに 可読性の高いテストコードを書くためのお作法集です。 みんなの意見を取り入れることでより良いガイドにしていきたいと思っているので、次に当てはまる場合はどんどんIssuesやPull Requestを送ってください。 疑問に思う点がある ここに書かれていないお作法がある 内容はいいけど表現がおかしい もっといいサンプルコードがある English Version 前提 RSpec FactoryBot describeとcontext describeとcontextは同じメソッドだが、次のように使い分けることで何をテストしているのかをわかりやすくできる。 describe の引数にはテストの対象を書く context の引数にはテストが実行される際に前提になる条件や状態を書く 例 RSpec.describe Stack, type: :model d

    iga_k
    iga_k 2018/10/04
    前島さん謹製らしいよさそう
  • Introducing Action Text for Rails 6 | Riding Rails

    Action Text is a brand new framework coming to Rails 6 that’s going to make creating, editing, and displaying rich text content in your applications super easy. It’s an integration between the Trix editor, Active Storage-backed file and image processing, and a text-processing flow that ties it all together. With Action Text, you really shouldn’t ever have to impoverish your users with a vanilla te

    Introducing Action Text for Rails 6 | Riding Rails
    iga_k
    iga_k 2018/10/04
    Action Text はリッチテキストエディタとActiveStorageの組み合わせの様子。CMS作りやすくなるかも。そして "Rails 6 is still a long ways off – we’re hoping to start the beta process in early 2019"
  • Hi-Con 2018 を開催します!|june29|note

    iga_k
    iga_k 2018/10/04
    ETHのカンファレンス!
  • 4 薬はどう選ぶべきか。頭がすっきりする風邪の話。 - ほぼ日刊イトイ新聞

    ご報告が遅くなり、すみません。 2018年2月におこなった 「ほぼ日の風邪アンケート」では、 8503名のかたにご参加いただきました。 当にありがとうございました。 さまざまな風邪の疑問が集まったので、 今回、その結果を持って、 神戸大学病院感染症内科の 岩田健太郎先生のもとを訪ねてきました。 岩田先生のお話は、とにかく明快。 「正しい」「間違っている。理由はこう」 「そういう説もあるが証明されていない」 など、わかりやすい説明で、 たくさんの疑問に答えてくださいました。 読むと、頭がちょっとすっきりしますよ。 これからはじまる風邪のシーズン、 参考にしていただけたら嬉しいです。 ほぼ日 風邪のとき、抗生物質は飲まないほうが いいということですが、 咳を抑えるものとか、熱を下げるものとか、 そういった薬は飲んでも大丈夫でしょうか? 岩田 大丈夫ですよ。 ただし、注意は必要です。 たとえば

    4 薬はどう選ぶべきか。頭がすっきりする風邪の話。 - ほぼ日刊イトイ新聞
    iga_k
    iga_k 2018/10/04
    風邪の良記事