Interesting Things
- As suggested in 09/03, one project switched to using Solr for search indexing. We were warned that wide range queries might be slow (looking for a value between 1… 10000) could be very slow, but it is not, at least with 400K indexed documents. We’ll watch out for slowdowns as the number of indexes increases.
Ask for Help
“JSUnit tests do not show line numbers for assertion failures, which makes it hard to know which assertion failed. Suggestions?”
Have fewer assertions per test, or use the message argument, such as assertEquals(foo, bar, 'foo should be the same as bar.').
“Is there any way to see test failure stack traces as soon as a test fails or errors? This would be especially nice for slow-running Selenium tests.”
A few Pivots remember hacking on Test::Unit and Rspec to display failure details immediately, but more research is needed. Perhaps there’s a plugin?
“Design Adam’s beard!”
Pivot Adam is shaving is beard and is looking for facial hair suggestions. Over the years he has displayed many of the “standard” beards and mustaches, so it’s time to get creative. Look to The Quest For Every Beard Type for inspiration. Here is your canvas:


Adam: +1 for Super Mario. It’s time.
September 8, 2008 at 5:16 pm
> use the message argument, such as assertEquals(foo, bar, ‘foo should
> be the same as bar.’)
A real quick hack, which I’ve been using for several decades, is to just use numbers instead of a full message (which I’ve always thought was redundant).
///ark
September 8, 2008 at 9:28 pm
Brian: I believe you mean, “It’s-a time!”
September 9, 2008 at 5:47 am