blob: 34a99d6fcffeb8a33e686a3f42527924e50897a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Summary: Ruby Testing framework
Summary(pl): Szkielet do testów dla języka Ruby
Name: ruby-ZenTest
Version: 2.3.0
Release: 1
License: GPL
Group: Development/Languages
Source0: http://rubyforge.org/frs/download.php/1944/ZenTest-%{version}.tar.gz
# Source0-md5: f94eed12075025c3e7090520b95e8eab
BuildRequires: ruby
BuildRequires: sed >= 4.0
Requires: ruby
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
ZenTest scans your target and unit-test code and writes your missing
code based on simple naming rules, enabling XP at a much quicker pace.
ZenTest only works with Ruby and Test::Unit.
For auditing, ZenTest provides an excellent means of finding methods
that have slipped through the testing process. I've run it against my
own software and found I missed a lot in a well tested package.
Writing those tests found 4 bugs I had no idea existed.
%description -l pl
ZenTest skanuje cel oraz kod testów jednostkowych i pisze brakujący
kod w oparciu o proste reguły nazywania, pozwalając na duży szybsze
XP. ZenTest działa tylko z Rubym i Test::Unit.
Dla potrzeb audytu ZenTest dostarcza świetne środki znajdowania metod
wyślizgujących się z procesu testowania. Autor uruchamiał je na
własnym oprogramowaniu i znalazł, że wiele pominął w dobrze
przetestowanym pakiecie. Napisanie tych testów znalazło 4 błędy, o
których istnieniu autor nie miał pojęcia.
%prep
%setup -q -n ZenTest-%{version}
find . -name '*.rb' | xargs sed -i -e '1s,#!.*local/bin/ruby#!%{_bindir}/ruby#'
%build
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
install ZenTest.rb $RPM_BUILD_ROOT%{_bindir}/ZenTest
install unit_diff.rb $RPM_BUILD_ROOT%{_bindir}/unit_diff
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
|