search for: formatter

Displaying 20 results from an estimated 302 matches for "formatter".

Did you mean: formatted
2011 Oct 18
3
Database custom formatter
I am trying to write a custom formatter to update a database record based on example results. Having a lot of trouble, so I thought to ask if anyone has a custom formatter that writes results to a database or outputs results in JSON or some other programmatic format. A working example will go a long way in helping me work thru my own...
2009 Feb 13
2
[cucumber][v0.2alpha]Where could I find API docs for custom formatters?
Hi, I''m working on update my local Cucumber to the latest version. But it seems the old formatter APIs(step_failed, scenario_executed, etc.) don''t work any more. Are there some documents or even Cucumber source code I can refer to? Thanks in advance, Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attac...
2007 Mar 19
4
spec.opts: questions about formatters, etc.
Questions concerning spec.opts: 1. Am I correct in believing that each option should go on a separate line of spec.opts in the rails spec directory? If this is so, why is it so? 2. Using a formatter in spec.opts doesn''t seem to work. Here is my spec.opts file: --colour -f s and this is what happens when I run the rake task: Couldn''t find formatter class s Make sure the --require option is specified *before* --format Scott Taylor
2008 Jan 04
1
patch for html display
All, I''ve found that the html view for the rspec formatter falls to pieces with Rails 2.02 and rspec 1.10. Has anyone else run into this trouble? Here''s a monkey patch that fixes the problem. A more elegant fix would be in order, but this gets the job done: Index: /Users/timcharper/www/exchange/vendor/plugins/rspec/lib/spec/runner/formatter/te...
2008 Jun 12
4
after :each invoked before formatter?
Hello. I''m using RSpec with Watir to do some automated tests on IE. I''ve ran into problem, where I want to make a screenshot of a browser window when example fails. For that I made custom formatter where in extra_failure_content i''m invoking screenshot taking methods. Now, everything works like a charm, as long as I''m not using after :each. I remember that I had this problem before with after :all with version 1.0.8 (at the moment I''m using 1.1.4). In after :each b...
2006 Feb 15
1
need a R-code formatter?
Hi all, I am using Tin-R as my editor; I use it because it allows me to send several selected lines to R-console and execute them... In some sense, this is my line-by-line debugger. But it doesn't have a code formatter, I have to layout the indention myself -- when there are many { } blocks with different layers, this editor does not help me beautify the code... I am looking for some editor with better debugging support and with a R-code formatter? Thanks a lot! Michael. [[alternative HTML version deleted]]
2023 Aug 04
1
[libnbd PATCH] golang: Optionally use gofmt on generated .go files
Combine my recent work on improving the generated Go output with Tage's work on using a canonical formatter for Rust. If gofmt is available during the build, then the generated .go files will now use TAB indents and have proper columnar alignment; if it is not available, the project still compiles. Signed-off-by: Eric Blake <eblake at redhat.com> --- Followup to this earlier series: https://list...
2008 Jan 13
3
How to trace running spec
Hey all, I have a spec that is hanging when it is running. How do I get the rspec runner to show what specs it''s running so I can which one is hanging? I am calling the runner from my rails project. Thanks, Ben
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
...ec_server. To do that I patched rspec_0.7.5 to add an option to force the adding of colour codes (I did it this way because I assumed the check for output==Kernel was important for some other situation and I didn''t want to just throw it away): diff -upr rspec-0.7.5/lib/spec/runner/formatter/ base_text_formatter.rb rspec-0.7.5_with_colour_patch/lib/spec/runner/ formatter/base_text_formatter.rb --- rspec-0.7.5/lib/spec/runner/formatter/base_text_formatter.rb 2006-12-21 01:42:44.000000000 -0800 +++ rspec-0.7.5_with_colour_patch/lib/spec/runner/formatter/ base_text_formatter.rb 2006-...
2011 Jan 26
2
changes in rspec 2.4 break ci_reporter
Hi I use the ci_reporter gem for builds on my CI machine (hudson). Prior to rspec 2.4, environment options would override commandline options. So the gem used this to change the formatter and require its files. In 2.4, that order has been reversed. the thing is 2.4 supports multiple formatters, so there is another suggestion. RSpec::Core::ConfigurationOptions def parse_options @options = begin options_to_merge = [] if cus...
2010 Dec 02
1
Metadata about formatter being used accessible in spec?
Is it possible to read which formatter is being used? For instance if - f d is used to output additional information or is there a better way to do that?
2008 Dec 12
8
cucumber features HTML output bug with more than 100 steps
I''m having the following problem: With the format as html, the output of cucumber stops coloring successful steps green after step #100. This last line in the HTML is: <script type="text/javascript">stepPassed(100)</script> Steps 101 -n are colored grey. The <body> tag is not closed but all steps are displayed. When running with ''format
2009 Feb 02
12
[RSpec] rcov and/or rexml bug?
Hi, Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the following error message with $ rake spec:rcov -- /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `[]'': no implicit conversion from nil to integer (TypeError) from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'' from /usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `wrap'' from /u...
2008 Dec 09
3
a custom progress bar formatter
...diately. I also want warnings to be printed for slow specs. When using color, I want the entire progress bar printed in green if everything is good, yellow if there has been a warning, and red if there has been an error. And then I remembered that rspec makes it super easy to write your own custom formatter. So I did. :-) http://ekenosen.net/nick/devblog/2008/12/better-progress-bar-for-rspec/ Let me know what you think. Is this useful to anyone? Any ideas for improvements? -- Nick
2007 Nov 11
4
Who''s using --format rdoc
I''m doing some housekeeping and just realised that the rdoc formatter produces gibberish: http://rspec.rubyforge.org/rdoc/files/EXAMPLES_rd.html Will anyone protest if I just go ahead and remove it? (I can''t imagine anyone using it, especially with the much better HTML formatter) Aslak
2019 May 04
4
[PATCH] configure.ac: Add mandoc as valid formatter
Hi, On systems that have mandoc installed but are missing an nroff binary, the configure script will fall back to pre-formatted manual pages despite the fact that mandoc could be used. The proposed patch adds mandoc as a valid formatter to configure.ac. As mandoc supports the -mdoc flag, it can simply be added to the list of nroff-like binaries. Wolfgang -------------- next part -------------- A non-text attachment was scrubbed... Name: mandoc-configure-ac.patch Type: text/x-diff Size: 504 bytes Desc: not available URL: <http:...
2005 Mar 04
17
active record logs format
Hi, I think this has already been asked on the list, but I can''t seem to be able to find it again: currently, active record does some weird thing with its sql logs i.e.: [4;33mSQL (0.000000) [1;37mPRAGMA table_info(map_locations) how do I remove the "[4;35m" thx Jean
2007 Dec 09
1
Story HTML Formatter
I recently noticed the HTML formatter for the story runner, but I''m unable to figure out how to make it function. ''ruby stories/all.rb --format html'' seems like it should work, in that --help works as expected, but I still get only plain text output. Maybe it''s not been wired up yet and/or this is...
2013 Dec 02
0
doveadm table formatter: hidden titles may cause misaligned headers
Hello, I recently noticed a small bug in the doveadm table formatter: hidden titles may cause the headers to be misaligned. The behavior in question was introduced by commit <http://hg.dovecot.org/dovecot-2.2/rev/210282ae46e1> and doveadm -f table quota get -A may be used to reproduce it. Most simple patch attached: it simply restores the old behavior, to s...
2015 Mar 19
3
Patch for "doveadm -f table" nit (was Re: Dovecot current number of connections being used.)
On 03/18/2015 08:49 PM, Timo Sirainen wrote: > There's no reason why flow and pager should write headers to stderr because it would always result only in a mess. But instead of changing table headers to write to stdout, I think a better fix would be to make tab formatter write headers to stderr. Including headers in stdout makes it more difficult to write scripts that access the actual data. For example now you can do "doveadm who -1 | sort" and the output will work. If headers were written to stdout you'd have to make it more complicated. Also you ca...