我正试图看到破坏业务层的好处。 在测试时,你正在核实你的业务逻辑,因此你需要改变数据层。
因此,缩小商业层面的好处是什么?
我正试图看到破坏业务层的好处。 在测试时,你正在核实你的业务逻辑,因此你需要改变数据层。
因此,缩小商业层面的好处是什么?
我用“磁克”来假设,就意味着任何一种立场。 当我听到模拟时,我想大家的期望(例如,模拟.should_recieve :do_something),但你提到“模拟”数据像一个 st(即回归的珍贵价值)。
http://martinfowler.com/articles/mocksArentStubs.html#ClassicalAndMockist Testing”rel=“nofollow”:spectrum of theory from “fake all” to “fake only if You really, really need to.” 每次使用双倍的理由是加速测试(可能是一个坏论点――见,这一令人惊讶的表述)和孤立失败。
在你提到的情况下——数据层的编码——除了上述内容外,还可以有一些好处:
HTH, Sean
如果你在报告层对一些代码进行单位测试,你可能会想改变商业层面。 您在这项测试中模拟了您的法典中的内容。
Are there database testing tools for python (like sqlunit)? I want to test the DAL that is built using sqlalchemy
I have been tasked with looking for a performance testing solution for one of our Java applications running on a Weblogic server. The requirement is to record production requests (both GET and POST ...
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 ...
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" ...
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 ...
I am testing in selenium and I have a bunch of stuff that happens on page load. I found out about autoit, and I was thinking that it could handle all javascript dialog issues. I was searching around ...
I use cucumber to run integration tests. I have a very large (30,000+ record) stardard setup for testing. How can I leave that in the test.sqlite3 database without re-loading it ever?
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 ...