Up to [cvs.NetBSD.org] / pkgsrc / devel / ruby-test-unit
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
devel/ruby-test-unit: remove package All ruby*-base have test-unit gem as bundled gem and no package require newer version of test-unit gem.
devel/ruby-test-unit: update to 3.4.7 3.4.7 - 2021-09-14 Fixes * Suppressed a warning on Ruby 2. [GitHub#205][Patch by Kenichi Kamiya] Thanks Kenichi Kamiya 3.4.6 - 2021-09-11 Improvements * Added support for tests that use Ractor. Use Test::Unit::TestCase.ractor to declare that these tests use Ractor. * Added --debug-on-failure option. 3.4.5 - 2021-09-04 Improvements * Added more metadata to gemspec. [GitHub#183][Patch by Kenichi Kamiya] * Removed needless files from gem. [GitHub#184][Patch by Kenichi Kamiya] * Updated documents. [GitHub#191][GitHub#192][GitHub#193][GitHub#199][GitHub#200] [GitHub#201][Patch by Kenichi Kamiya] Added assert_nothing_leaked_memory. Fixes * Fixed typos in documents. [GitHub#189][GitHub#190][GitHub#195][GitHub#197][Patch by Kenichi Kamiya] Thanks * Kenichi Kamiya
devel/ruby-test-unit: update to 3.4.0 3.4.0 - 2021-01-30 Improvements * Enable deprecated warnings by default.
devel/ruby-test-unit: update to 3.3.9
## 3.3.9 - 2020-12-29 {#version-3-3-9}
### Improvements
* `assert_not_match`: Add support for `String` as pattern.
[GitHub#178][Patch by David Rodríguez]
### Thanks
* David Rodríguez
## 3.3.8 - 2020-12-25 {#version-3-3-8}
### Improvements
* [UI][console]: Removed reverse mode because Ruby 3.0 reverts
reverse backtrace.
## 3.3.7 - 2020-11-18 {#version-3-3-7}
### Improvements
* Improved TruffleRuby support.
[GitHub#171][Reported by Benoit Daloze]
* Removed needless `to_sym`.
[GitHub#177][Patch by icm7216]
* `assert_raise`: Added backtrace for actual error.
* Improved terminal color availability detection.
[GitHub#175][Patch by nicholas a. evans]
* Changed license to the new Ruby's.
[GitHub#174]
### Fixes
* Fixed a typo in `--help` output:
[GitHub#176][Patch by icm7216]
### Thanks
* Benoit Daloze
* icm7216
* nicholas a. evans
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}`
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
Update ruby-test-unit to 3.1.7.
* pkgsrc change: revive ruby23 support.
## 3.1.7 - 2016-01-17 {#version-3-1-7}
### Fixes
* Added a missing require.
## 3.1.6 - 2016-01-17 {#version-3-1-6}
It's a Ruby on Rails integration improvement release.
### Improvements
* Filtered backtrace of power\_assert.
[GitHub#114]
* Improved performance to retrieve test defined location.
* Improved performance to run fixtures in a test.
* Supported running a test by `yield` in `setup`:
Before:
def setup
@file = File.open("x")
end
def teardown
@file.close
end
After:
def setup
File.open("x") do |file|
@file = file
yield
end
end
* Added `--default-test-path` option that specifies the default path
that has tests.
* Made auto runner registration more lazily. Auto runner isn't
registered automatically until user defines a test. In the
previous releases, auto runner is registered automatically when
user defines a test case.
* Supported specifying a test by location in command line. For
example, the following command line runs a test that is defined in
/tmp/test_a.rb at line 10:
% ruby -r test-unit -e run_test /tmp/test_a.rb:10
### Fixes
* Fixed a bug that test isn't ran. The test has the same name as
data driven test that is defined in parent test case.
[GitHub#115]
Update ruby-test-unit to 3.1.3.
# News
## 3.1.3 - 2015-07-26 {#version-3-1-3}
It's a bug fix release.
### Improvements
* Removed unused `TODO` file. [GitHub#108][Patch by takiy33]
### Fixes
* `--location`: Fixed a bug that `--location LINE` doesn't work when
test script is specified as relative path. [Reported by TOMITA Masahiro]
The following doesn't work:
% ruby ./test.rb --location 10
The following works:
% ruby test.rb --location 10
### Thanks
* takiy33
* TOMITA Masahiro
Update ruby-test-unit to 3.0.9. Changes are too many to write here, please refer doc/text/news.md.
Update ruby-test-unit to 2.5.5. Release note isn't available.
Update ruby-test-unit to 2.5.4. 2.5.4 - 2013-01-23 It's a bug fix release. Improvements * Added documents for data driven test functionality. * Added TSV support for data driven test functionality. * Support tag inspection on JRuby. Fixes * Fixed a bug. It is too slow to filter tests when there are many tests. [GitHub#46] * Accept anonymous test suite. [GitHub:#49] [Reported by Matthew Rudy Jacobs] Thanks * Matthew Rudy Jacobs
Update ruby-test-unit to 2.5.3. 2.5.3: It's an release for minitest compatibility and bug fix. Improvements * Supported diff in invalid encoding. * Added some assersion methods just for minitest compatibility. Added methods are assert_includes(), refute_*() and refute(). If you are test-unit user, please don't use them. [GitHub#40] [Suggested by Michael Grosser] * Added --attribute option to select target tests by attribute. [test-unit-users-en:00098] [Suggested by Piotr Nestorow] Fixes * Allowed use of test for inheritance in ActionController::TestCase. [GitHub#42] [Patch by David Rasch] * Ensured evaluating at_exist block in top level. In IRB context, exit() specifies irb_exit(). [test-unit-users-en:00089] [Reported by Daniel Berger] * Fixed a bug that decoration style description is ignored. "decoration style description" are using description method above "def test_name" or with Symbol specifying test_name. [GitHub#45] [Reported by Piotr Nestorow] Thanks * Michael Grosser * David Rasch * Daniel Berger * Piotr Nestorow
Update ruby-test-unit to 2.5.2. - Update HOEPAGE. 2.5.2 -- 2012-08-29 It's an improvement release for tmtms. --location is a similar feature to --line_number in RSpec. sub_test_case is a similar feature to context in shoulda-context and RSpec. Improvements * Cleaned up tests. [GitHub#34] [Patch by Michael Grosser] * Added missing background color for 8 color environment. * Added workaround for NetBeans. [GitHub#38] [Reported by Marc Cooper] * Added --location command line option that selects target tests by test defined location. * Created sub test suite for each subclassed test case. * [ui][console] Supported nested test suites. * Added Test::Unit.at_start and Test::Unit.at_exit hooks that are run before/after all tests are run. [Good hook name is suggested by kdmsnr] * Improved code snippet target on failure. Test method is always used for code snippet target. [GitHub#39] [Suggested by Michael Grosser] * Added Test::Unit::TestCase.sub_test_case that creates sub test case. The sub test case name isn't limited Ruby's constant name rule. You can specify the sub test case name in free form. Thanks * Michael Grosser * Marc Cooper * kdmsnr 2.5.1 -- 2012-07-05 It's a bug fix release. Improvements * Supported installing from GitHub. [GitHub#29] [Suggested by Michael Grosser] * Supported ActiveSupport::TestCase. [GitHub#30] [Reported by Michael Grosser] * [ui][console] Improved multiline falut message display. Fixes * [ui][console] Fixed a bug that expected and actual values are empty. [GitHub#31][GitHub#33] [Reported by Kendall Buchanan][Reported by Mathieu Martin] [Hinted by Michael Grosser] * Fixed a bug that .gemspec can't be loaded on LANG=C. [RubyForge#29595] [Reported by Jean-Denis Koeck] Thanks * Michael Grosser * Kendall Buchanan * Mathieu Martin * Jean-Denis Koeck
Update ruby-test-unit package to 2.4.8.
2.4.8 – 2012-3-6
It's a bug fix release.
* Improvements
- Delayed at_exit registration until Test::Unit is used. [GitHub:#21]
[Reported by Jason Lunn]
- Added workaround for test-spec. [GitHub:#22] [Reported by Cédric Boutillier]
* Fixes
- Fixed an error on code snippet display on JRuby. [GitHub:#19][GitHub:#20]
[Reported by Jørgen P. Tjernø][Patch by Junegunn Choi]
* Thanks
Jørgen P. Tjernø
Junegunn Choi
Jason Lunn
2.4.7 – 2012-2-10
It’s a code snippet improvement release.
* Improvements
- Supported code snippet display on all faults.
2.4.6 – 2012-2-9
It’s a TAP runner separated release.
* Improvements
- Moved TAP runner to test-unit-runner-tap gem from test-unit gem.
- Supported code snippet display on failure.
2.4.5 – 2012-1-16
It’s a failure message readability improvement release.
* Improvements
- Removed needless information from exception inspected text on
failure. It’s for easy to read.
- Supported custom inspector.
2.4.4 – 2012-1-2
It’s a Rails integration improved release.
* Improvements
- [ui][console] Don’t break progress display when a test is failed.
- [ui][console] Added markers betwen a failure detail message in progress to
improve visibility.
- [travis] Dropped Ruby 1.8.6 as a test target. [GitHub:#13] [Patch by Josh
Kalderimis]
- Supported expected value == 0 case in assert_in_epsilon. [RubyForge#29485]
[Reported by Syver Enstad]
- Supported a block style setup/teardown/cleanup.
* Thanks
Josh Kalderimis
Syver Enstad
Update devel/ruby-test-unit package to 2.4.3. Several improvements and bug fixes.
Update devel/ruby-test-unit package to 2.3.1. Changes are unknown.
Update ruby-test-unit pacakge to 2.3.0.
=== 2.3.0 / 2011-04-17
* 13 enhancements
* improve Hash key sorting for diff.
* [#28928] support any characters in declarative style description.
[Daniel Berger]
* add Error#location and make #backtrace deprecated.
* make TestCase#passed? public.
* add result finished and pass assertion notifications.
* add TestSuite#passed? public.
* add XML test runner.
* add --output-file-descriptor option.
* measure elapsed time for each test.
* add --collector option.
* support test driven test.
[Haruka Yoshihara]
* add cleanup hook it runs between after test and before teardown.
* support recursive collection sort for diff.
* Thanks
* Daniel Berger
* Haruka Yoshihara
=== 2.2.0 / 2011-02-14
* 22 enhancements
* [#28808] accept String as delta for assert_in_delta.
[Daniel Berger]
* [test-unit-users-en:00035] make GC-able finished tests.
[Daniel Berger]
* use also COLUMNS environment variable to guess terminal width.
* make delta for assert_in_delta optional.
[Nobuyoshi Nakada]
* add assert_not_respond_to.
[Nobuyoshi Nakada]
* add assert_not_match. assert_no_match is deprecated.
[Nobuyoshi Nakada]
* add assert_not_in_delta.
[Nobuyoshi Nakada]
* add assert_in_epsilon.
[Nobuyoshi Nakada]
* add assert_not_in_epsilon.
[Nobuyoshi Nakada]
* add assert_include.
[Nobuyoshi Nakada]
* add assert_not_include.
[Nobuyoshi Nakada]
* add assert_empty.
[Nobuyoshi Nakada]
* add assert_not_empty.
[Nobuyoshi Nakada]
* notify require failed paths.
* validate message value for assert.
* show throughputs at the last.
* support not ASCII compatible string diff.
* support colorized diff on encoding different string.
* normalize entry order of Hash for readable diff.
* add --ignore-name option.
* add --ignore-testcase option.
* add assert_not_send.
* Thanks
* Daniel Berger
* Nobuyoshi Nakada
Importing devel/ruby-test-unit 2.1.1. 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.
Initial revision