./devel/ruby-test-unit, Improved version of Test::Unit

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.2.9, Package name: ruby24-test-unit-3.2.9, Maintainer: pkgsrc-users

Test::Unit 2.x - Improved version of Test::Unit bundled in
Ruby 1.8.x.

Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
bundled in Ruby 1.8.x had not been improved but unbundled
Test::Unit (Test::Unit 2.x) will be improved actively.

== FEATURES

* Test::Unit 1.2.3 is the original Test::Unit, taken
straight from the ruby distribution. It is being
distributed as a gem to allow tool builders to use it as a
stand-alone package. (The test framework in ruby is going
to radically change very soon).

* Test::Unit 2.x will be improved actively and may break
compatiblity with Test::Unit 1.2.3. (We will not hope it
if it isn't needed.)

* Some features exist as separated gems like GUI test
runner. (Tk, GTK+ and Fox) test-unit-full gem package
provides for installing all Test::Unit related gems
easily.


Required to run:
[lang/ruby24-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: dc94dd3777650574537e37cf7096cbf24086da1e
RMD160: ffae563df2c9d0df187b1a06173010c7e267993c
Filesize: 128.5 KB

Version history: (Expand)


CVS history: (Expand)


   2018-12-02 07:37:54 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
devel/ruby-test-unit: update to 3.2.9

## 3.2.9 - 2018-12-01 {#version-3-2-9}

### Improvements

  * Added support for data generation by method. `data_#{test_name}`
    is called to generate data for `test_name` test.

  * Added support for data matrix generation.

    Example:

    ```ruby
    data(:a, [0, 1, 2])
    data(:b, [:x, :y])
    def test_data(data)
    end
    ```

    This example generates the following data matrix:

      * label: `"a: 0, b: :x"`, data: `{a: 0, b: :x}`
      * label: `"a: 0, b: :y"`, data: `{a: 0, b: :y}`
      * label: `"a: 1, b: :x"`, data: `{a: 1, b: :x}`
      * label: `"a: 1, b: :y"`, data: `{a: 1, b: :y}`
      * label: `"a: 2, b: :x"`, data: `{a: 2, b: :x}`
      * label: `"a: 2, b: :y"`, data: `{a: 2, b: :y}`

  * Added `Test::Unit::TestCase#data` that returns the current data.

  * Added support for using test method that doesn't have no
    parameters as data driven test.

    Example:

    ```ruby
    data("label", :value)
    def test_data # Available since this release
      p data # :value
    end
    ```

  * Added support for `:keep` option to `Test::Unit::TestCase.data`.

  * Added support for `:group` option to
    `Test::Unit::TestCase.data`. It's useful to generate multiple data
    matrix groups.

    ```ruby
    # Group1
    data(:a, [0, 1, 2], group: :g1)
    data(:b, [:x, :y], group: :g1)
    # Group2
    data(:a, [:x, :y], group: :g2)
    data(:c, [-1, -2], group: :g2)
    def test_data(data)
    end
    ```

    This example generates the following data matrix:

      * label: `"group: :g1, a: 0, b: :x"`, data: `{a: 0, b: :x}`
      * label: `"group: :g1, a: 0, b: :y"`, data: `{a: 0, b: :y}`
      * label: `"group: :g1, a: 1, b: :x"`, data: `{a: 1, b: :x}`
      * label: `"group: :g1, a: 1, b: :y"`, data: `{a: 1, b: :y}`
      * label: `"group: :g1, a: 2, b: :x"`, data: `{a: 2, b: :x}`
      * label: `"group: :g1, a: 2, b: :y"`, data: `{a: 2, b: :y}`
      * label: `"group: :g2, a: :x, b: -1"`, data: `{a: :x, b: -1}`
      * label: `"group: :g2, a: :x, b: -2"`, data: `{a: :x, b: -2}`
      * label: `"group: :g2, a: :y, b: -1"`, data: `{a: :y, b: -1}`
      * label: `"group: :g2, a: :y, b: -2"`, data: `{a: :y, b: -2}`
   2018-09-23 17:20:26 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-test-unit: update to 3.2.8

## 3.2.8 - 2018-05-13 {#version-3-2-8}

### Improvements

  * [UI][console]: Changed to put code snippet before backtrace on
    reverse mode.
   2018-03-14 15:25:33 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
devel/ruby-test-unit: update to 3.2.7

## 3.2.7 - 2017-12-12 {#version-3-2-7}

### Improvements

  * Added source code link to gemspec.
    [GitHub#157][Patch by Grey Baker]

  * Changed to use SVG image for badges in README.
    [GitHub#158][Patch by Olle Jonsson]

  * [UI][console]: Added `--reverse-output` option to output fault
    details in reverse like Ruby 2.5. It's enabled by default only for
    tty output.

### Fixes

  * Fixed a typo.
    [GitHub#156][Patch by masa kunikata]

  * [UI][console]: Fixed a bug that broken align in verbose mode.

### Thanks

  * masa kunikata

  * Grey Baker

  * Olle Jonsson

## 3.2.6 - 2017-09-21 {#version-3-2-6}

### Improvements

  * Changed test file require failure to error from omission.
    [GitHub#154][Patch by naofumi-fujii]

### Thanks

  * naofumi-fujii
   2017-07-13 17:35:32 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-test-unit to 3.2.5.

## 3.2.5 - 2017-06-24 {#version-3-2-5}

### Improvements

  * Supported `--enable-frozen-string-literal` `ruby` option.
    [GitHub#149][Reported by Pat Allan]

### Thanks

  * Pat Allan
   2017-06-20 15:42:33 by Takahiro Kambe | Files touched by this commit (3)
Log message:
Remove ruby21 reference.
   2017-06-12 19:10:23 by Takahiro Kambe | Files touched by this commit (2)
Log message:
ruby200 had already retired.
   2017-06-05 16:17:43 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-test-unit to 3.2.4.

## 3.2.4 - 2017-05-23 {#version-3-2-4}

### Improvements

  * Updated tests for Ruby 2.4. [GitHUb#136][Patch by Kazuki Tsujimoto]

  * Supported power\_assert 1.0.0. [GitHub#137][Patch by Kazuki Tsujimoto]

  * Added the getting started document.
    [GitHub#139][GitHub#141][Patch by Hiroyuki Sato]

  * Added the document for `attribute`.
    [GitHub#143][Patch by Fumiaki MATSUSHIMA]

  * Improved a link for GitHub. [GitHub#144][Patch by rochefort]

  * Updated `.travis.yml`. [GitHub#145][Patch by Jun Aruga]

### Fixes

  * Fixed a contributor name. [GitHub#131][Patch by Akira Matsuda]

  * Fixed typos in document. [GitHub#132][Patch by Akira Matsuda]

  * Fixed typos in document. [GitHub#134][Patch by Yuji Yaginuma]

  * Fixed a bug that data label with "(" isn't supported.
    [GitHub#135][Reported by Kazuki Tsujimoto]

  * Fixed assertion message in English.
    [GitHub#133][Reported by Khalil Fazal]

  * Fixed a typo in typo fix. [GitHub#138][Patch by kami]

  * Fixed a bug that target location finder may return wrong
    location. [GitHub#146][Patch by Yuki Ito]

  * Fixed a bug that `--no-show-detail-immediately` raises an error.
    [GitHub#147][Reported by MSP-Greg]

### Thanks

  * Akira Matsuda

  * Yuji Yaginuma

  * Kazuki Tsujimoto

  * Khalil Fazal

  * kami

  * Hiroyuki Sato

  * Fumiaki MATSUSHIMA

  * rochefort

  * Jun Aruga

  * Yuki Ito

  * MSP-Greg
   2017-03-12 15:44:47 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-test-unit to 3.2.3.

## 3.2.3 - 2016-11-25 {#version-3-2-3}

### Fixes

  * Fixed a bug that `--order` isn't applied.
    [GitHub#129][Reported by V«¿t Ondruch]

### Thanks

  * V«¿t Ondruch

## 3.2.2 - 2016-11-02 {#version-3-2-2}

### Improvements

  * Improved Travis CI configuration.
    [GitHub#123][Patch by Ryunosuke SEATO]

  * Supported Java native exception.
    [GitHub#126][Reported by Bob Saveland]

### Fixes

  * doc: Fixed markup. [GitHub#127][Patch by Tomohiro Hashidate]

  * Fixed a bug that `--location=LINE` may not detect a test when
    fixtures are defined before any tests:

        1 class MyTestCase < Test::Unit::TestCase
        2   setup do
        3   end
        4
        5   test "xxx" do
        6   end
        7 end

    `--location=5` couldn't find the `xxx` test.

    [Reported by Ryota Sasabe]

### Thanks

  * Ryunosuke Sato

  * Tomohiro Hashidate

  * Bob Saveland

  * Ryota Sasabe