<commit_before>---
layout: post
title: Minitest
description: "Easy TDD with Minitest"
modified: 2014-09-19
tags: [Ruby, Minitest, TDD]
image:
  feature: abstract-10.jpg
  credit: dargadgetz
  creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
comments: true
share: true  
---
Wikipedia TDD:

[Test-driven development](http://en.wikipedia.org/wiki/Test-driven_development) Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: first the developer writes an (initially failing) automated test case that defines a desired improvement or new function, then produces the minimum amount of code to pass that test, and finally refactors the new code to acceptable standards. <NAME>, who is credited with having developed or 'rediscovered' the technique, stated in 2003 that TDD encourages simple designs and inspires confidence.

Test-driven development is related to the test-first programming concepts of extreme programming, begun in 1999,but more recently has created more general interest in its own right.

### Ruby's Minitest

{% highlight ruby %}
require 'minitest/autorun'
<commit_msg>+ text Nello ist tief beeindruckt<commit_after>---
layout: post
title: Minitest
description: "Easy TDD with Minitest"
modified: 2014-09-19
tags: [Ruby, Minitest, TDD]
image:
  feature: abstract-10.jpg
  credit: dargadgetz
  creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/
comments: true
share: true  
---
Wikipedia TDD:

Nello ist tief beeindruckt!

[Test-driven development](http://en.wikipedia.org/wiki/Test-driven_development) Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: first the developer writes an (initially failing) automated test case that defines a desired improvement or new function, then produces the minimum amount of code to pass that test, and finally refactors the new code to acceptable standards. <NAME>, who is credited with having developed or 'rediscovered' the technique, stated in 2003 that TDD encourages simple designs and inspires confidence.

Test-driven development is related to the test-first programming concepts of extreme programming, begun in 1999,but more recently has created more general interest in its own right.

### Ruby's Minitest

{% highlight ruby %}
require 'minitest/autorun'

{'fraction_non_alphanumeric': 0.07664380798709157, 'fraction_numerical': 0.016135538523598225, 'mean_word_length': 5.034063260340632, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6060922', 'n_tokens_mistral': 725, 'n_tokens_neox': 668, 'n_words': 293}