Questions tagged [redgreen]

7 questions
8
votes
5 answers

TDD: How to test a search?

My website will have an advanced search. Pleople can go there and search about an entitiy (cars, for example). I've created some tests that check the number of results based on the search parameters. I think about what tests should I write, then i…
thom
  • 691
  • 1
  • 5
  • 5
5
votes
7 answers

How do you calculate the area of a series of random points?

So I'm working on a piece of code to take positional data for a RC Plane Crop Duster and compute the total surface area transversed (without double counting any area). I cannot figure out how to calculate the area for a given period of operation.…
TelsaBoil
  • 584
  • 1
  • 6
  • 14
5
votes
2 answers

TDD workflow in Xcode - how to "quick fix" when doing red-green-refactor?

One of the things which makes TDD nice is the ability to generate code after you have written a test. This is done with the Quick Fix option in Eclipse (Cmd-F1) - or with similar option using Alt-Enter in Jetbrains tools. Most of the usage just…
Maria Zverina
  • 10,863
  • 3
  • 44
  • 61
3
votes
1 answer

Rake test with redgreen gem always finish with "0 tests"

Just by adding the gem redgreen, the 'rake test' always finish by the line : 0 tests, 0 assertions, 0 failures, 0 errors I've created a example project on github: https://github.com/joel1di1/test_colored_tests
joel1di1
  • 773
  • 5
  • 13
1
vote
1 answer

Can I run our tests using redgreen without changing our source code?

I'd like to use redgreen (or similar) to colour the output of our tests, but I don't want to force it on everyone else. Is there a way for me to use it without changing our source code?
Simon
  • 25,468
  • 44
  • 152
  • 266
1
vote
2 answers

Rails console not working with redgreen gem

I have a problem with rails console, here is what I am getting when I try to start rails console: backo@speedy:~/ucimrails/simple_app$ rails c --sandbox …
Blagoje
  • 108
  • 1
  • 8
0
votes
1 answer

How to disable gem temporarily in Rails 3 using Bundler?

I have discovered that the redgreen gem is incompatible with ISO-8859-1 encoding of test files. What is the best way to disable one gem temporarily to run certain test files?
B Seven
  • 44,484
  • 66
  • 240
  • 385