English 中文(简体)
乱葬坑中的错误,但并非个别的错误
原标题:RSpec errors when run en masse, but not individually

不幸的是,我没有一个具体问题(或lu),但希望有人能够把我引向正确的方向。

When I run all of my tests (rspec spec), I am getting two tests that fail specifically related to Delayed Job.

当我单独管理这一光谱档案时(光谱仪/光谱/控制器/xxx_ Controller_spec.rb)所有测试都通过。 这是一个共同的问题吗? 我应想什么?

感谢!

最佳回答

你已经提到这个问题:孤立可能是解决办法。 我通常会猜测,在数据库中,你有事情正在改变,没有适当清理(或者说没有适当改动)。

在此情况下,我建议,由于该系统的工作量很大,延迟的工作没有足够快。 这一挑战涉及所有应经过考验的同步任务:你决不能让系统管理延迟的工作,而必须改变要求,并公正地确保延迟的工作得到接受。

可悲的是,没有例子,我很难指出失踪的 mo。 但是,确保所有要求推迟聘用和类似工作的人都得到正确数据,但实际上不会创造和管理这些工作——你的光谱也将更快。 确保你将测试中的职能分开,不把外部依赖者称作。

问题回答

暂无回答




相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签