From: Gaspard Bucher Date: 2008-09-25T02:55:00+09:00 Subject: Re: better test/unit progression display Le 24 sept. 08 à 18:35, Trans a écrit : > > > On Sep 24, 12:18 pm, Gaspard Bucher wrote: >> I cloned the repository and did "rake gem", "rake gem:install" >> >> Using "require 'turn'" in the testhelp.rb file works fine. I tested >> with/without 'turn' to see the speed hit: >> >> I ran the 1300+ tests without run: 6m23 >> With run: 6m28 >> (In both cases, no test failure). >> >> That's great it takes very little time and it gives a direct hint on >> failed tests. >> >> The --solo option to display a progress bar does not seem to work >> (the >> progress bar ... is not progressing). > > Hmm... that sucks. It's working for me. It just hangs? I tried > > > What system are you running? Version of Ruby? And I assume you have > Facets installed? It's related to zena... It works fine in irb. pb = ProgressBar.new('pbtest', 100) => (ProgressBar: 0/100) irb(main):023:0> (1..100).to_a.each do irb(main):024:1* pb.inc irb(main):025:1> sleep(1) irb(main):026:1> end works fine. > > > Is "zena" a public project? If so I could download it and try to see > what's the issue is. project: http://zenadmin.org sources: http://github.com/zena/zena It could come from zena (the testing stuff has been largely adapted from rails). I started to hack around and see if I could display the ProgressBar. The problem seems to be that the run_count is 0. > > >> Feature request ;-) >> >> Is it possible to view a % of tests executed somewhere during the >> PASS, FAIL listing ? >> I'll try to implement an option to display the ProgressBar instead of test list (once the ProgressBar works). > > Possibly, I'll look into it. > > T. > Gaspard ------- project: zena CMS (http://zenadmin.org)