タグ

ブックマーク / jetbrains.github.io (1)

  • Spek - A Specification Framework

    Your typical test code Here’s some typical test code found in many codebases @Test public void testCalculateTaxRate() { TaxRateCalculator calculator = new TaxRateCalculator(); Int value = calculator.calculateRate(200, 10); assertEquals(300,value); } This code suffers from several issues. Under what conditions is the tax rate calculated? What exactly is it doing? What is the expected outcome? Being

    theatrical
    theatrical 2014/02/18
    "That’s what Spek does. It is a specification framework that allows you to easily define specifications in a clear, understandable, human readable way."
  • 1