TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What tools and methods do you use for software testing?

24 点作者 anthonyrubin超过 16 年前
Other than unit testing, what tools and methods do you use for software testing? Do you even do any other type of testing? Do you use commercial tools?

16 条评论

jimb超过 16 年前
We have Hudson running continuous tests on svn checkins. Which is unit tests and some other tests run through junit and junitperf etc, sort of functional testing.<p>We then also do full build performance tests using the grinder at night. This is currently not very automated at all, and involves doing processing in the morning. These are short runs, multiple samples averaged. It would be good to know how others are running there performance testing automatically, and also how they are monitoring the systems during the exact times of the test.<p>We also prior to release run some serious stress testing, again using grinder. Then soak tests using grinder at expected load for 1 week. This gives us the data we need for a release.
评论 #336112 未加载
qhoxie超过 16 年前
Rspec is my current favorite for testing. I still do unit tests, but rspec is so semantically intuitive and helpful when running the suites against large apps.
评论 #336036 未加载
评论 #336283 未加载
makecheck超过 16 年前
I rely on Python's built-in unittest module. While this is most seamless for Python code, with some customization you can make it manage anything (e.g. running external test programs and writing assertions on the results).
keefe超过 16 年前
JUnit, FlexUnit and nightly build scripts with ant. Everything is complicated by working on an OSGi based project, so eclipse test framework is a core piece and reports from ETF are formatted with an XSLT and mailed.
perezd超过 16 年前
I use the standard Ruby Test::Unit framework, with ThoughtBot's Shoulda extensions. I enjoy the standardization of the xUnit family, but the RSpec-y contexts and definitions are great too! best of both worlds!
akeefer超过 16 年前
We write a lot of what we call "smoke tests," which are essentially integration testing in most people's parlance. It's a long story, but we have a custom web framework that's widget-based, and one thing that allows us to do is to write UI-level tests directly in-process against that widget model, rather than having to use an external client to deal with the HTML output (so they can run and be written like unit tests). Our internal language has an open type system, allowing us to essentially do type-safe metaprogramming on the set of pages and widgets, such that if someone changes the page (like removing a button) the test will cease to compile. In general, maintenance is a huge problem for UI-level tests, so that's been a huge win for us.<p>To test the framework itself, we mainly use Selenium to test the actual HTML and javascript output. To test things that Selenium can't easily handle, we've also used the Watir library (<a href="http://wtr.rubyforge.org/" rel="nofollow">http://wtr.rubyforge.org/</a>).<p>Our real unit tests are basically built on top of JUnit, though we have our own extensions to it that are specific to our platform.<p>To run the tests and report results, we have a custom application developed on our web framework and the rest of our software stack. Originally we used CruiseControl, but we outgrew that fairly quickly. It does a lot of stuff for us, but the key abilities are 1) parceling the tests out to a farm of servers and 2) assigning test breaks to users (basically a guess based on who changed what files in source control since the last successful test run); if you have more than a few people on the team, without actually making the test breaks one person's problem to resolve you end up with massive diffusion of responsibility where no one thinks it's their break.<p>We also have an internal performance testing harness for running load tests, which we write using the same framework as the smoke tests I described above (though in that case the clients are naturally remote).
Elfan超过 16 年前
You may find this page useful: <a href="http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy" rel="nofollow">http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy</a><p>I find nose particularly useful both for running tests (including unit). I have also found (fire)wait to be useful for driving a browser.
评论 #336196 未加载
Hates_超过 16 年前
Selenium IDE for web application acceptance testing.
gqwu超过 16 年前
TDD + EUnit <a href="http://svn.process-one.net/contribs/trunk/eunit/doc/overview-summary.html" rel="nofollow">http://svn.process-one.net/contribs/trunk/eunit/doc/overview...</a> for my erlang apps.
cstejerean超过 16 年前
nose for Python testing. Nice plugin architecture and compatible with unittest and doctests. <a href="http://somethingaboutorange.com/mrl/projects/nose/" rel="nofollow">http://somethingaboutorange.com/mrl/projects/nose/</a>
natch超过 16 年前
Test::More for Perl.<p>Watir (ruby-scriptable driving of a browser) for web UI testing.
timcederman超过 16 年前
Some hand-rolled tools for search quality, Silk Performer and Silk Test for automated perf and regression testing.
jamesbritt超过 16 年前
Rspec and Cucumber for our JRuby Swing apps; Selenium for web acceptance testing. Sometimes Bacon for unit tests.
mwotton超过 16 年前
Test::More, Test::LectroTest (Haskell's QuickCheck but in Perl), Test::WWW::Mechanize and BuildBot
Sujan超过 16 年前
PHPUnit it is for everything PHP.
Allocator2008超过 16 年前
Borland SilkTest. A good "industry standard" by this point.
评论 #336053 未加载