タグ

MinitestとRspecに関するYassLabのブックマーク (4)

  • https://x.com/ryanrhughes/status/2019258699001294911

    YassLab
    YassLab 2026/02/07
    “The codebase is 2.6x larger. The test code is actually 26% smaller due to less ritual code. And it runs in 4 seconds vs 2+ minutes from the already-optimized RSpec setup. ... / Tests read like the code they're testing. And it's fast because it's multi-threaded by default.”
  • [作成中]RSpecについて初学者段階のメモ - Qiita

    ※間違いなどございましたらご指摘いただけると幸いです ※随時更新予定 概要 以下、https://semaphoreci.com/community/tutorials/getting-started-with-rspec より引用 RSpec is a testing tool for Ruby, created for behavior-driven development (BDD). It is the most frequently used testing library for Ruby in production applications. 「RSpec は、ビヘイビア駆動開発 (BDD) 用に作成された Ruby のテスト ツールです。番アプリケーションで最も頻繁に使用される Ruby のテスト ライブラリです。」(Google翻訳) RSpecはRailsアプリケーシ

    [作成中]RSpecについて初学者段階のメモ - Qiita
    YassLab
    YassLab 2024/07/12
    “構文がシンプル → 故に学習もしやすい / Railsチュートリアル、Railsガイドではこちらが使用されている”
  • Why I don’t enjoy RSpec all that much

    One of the reasons I prefer testing with Minitest is the dissatisfaction with my everyday RSpec work. Here are things I don’t like about typical RSpec test suites and how to fix them. Please take the post with a grain of salt. If you enjoy writing RSpec this way, keep enjoying it! Some things are personal, and it’s okay. Shared examples I think the shared examples feature deserves the first spot.

    Why I don’t enjoy RSpec all that much
    YassLab
    YassLab 2022/09/19
    “I use and prefer Minitest precisely because it’s so bare bone. I can think about the domain problems rather than trying to make sense of the test suite.”
  • RailsチュートリアルでRSpecを使用する前に知っておきたいこと - Qiita

    はじめに こんにちは!先日Railsチュートリアルを完走したばかりの初心者です。 私はRalisチュートリアルを開始する際にRSpecを使用すべきか悩みました。 記事では私が当時知りたかったRSpecについての情報をまとめております。 導入を検討されている方のお役に立てればと思います。 ※記事ではRSpecの導入方法については記載しておりません。 導入方法をお探しの方は以下の記事が参考になるかと思います。 ○RailsアプリへのRspecとFactory_botの導入手順 RSpecとは RSpecとは、RubyでBDD (ビヘイビア駆動開発) を実施するためのテストフレームワークです。 プログラムのふるまいを記述するためのドメイン特化言語(DSL)を提供します。 簡単に言うとRSpecは「プログラムのふるまいをコードで記述して、正しく動作しているか確認するテストフレームワーク」です。

    RailsチュートリアルでRSpecを使用する前に知っておきたいこと - Qiita
    YassLab
    YassLab 2019/06/12
    “ #Railsチュートリアル を #minitest で実施したとしても、テストの流れや考え方は変わらないため習得した知識が無駄にならない / 学習した内容は #RSpec を使用する際に確実に活きてきます”
  • 1