スキップしてメイン コンテンツに移動

投稿

ラベル(Test Tool)が付いた投稿を表示しています

JsTestDriver Trouble and Tips

I am looking for testing tools for Javascript and reached at This Stackoverflow page . The page contains bunch of useful information :) After reading the page, I decided to use JsTestDriver for the following reason. having high affinity with CI server providing plugin for codecoverage - ( lcov format) JUnit format report To run Javascript test, you need to start up JsTestDriver server. The command is simple. java -jar JsTestDriver-1.3.4.b.jar --port 9876 One thing you should be careful about is if you run the above command in the directory which includes jsTesDriver.conf, the jar automatically picked up the jsTestDriver.conf and and it starts as server mode. Ok now you need to run client side (actual tests) against the server. You will use FireFox + Xvfb or PhantomJS as headless browser. java -jar JsTestDriver-1.3.4.b.jar --browser {path to browser} --tests all --config jsTestDriver.conf --testOutput testResult Also jsTestDriver.conf should something like this: server:

Selenium IDEの使い勝手について調査

Selenium IDEの概要 FireFoxのPlugin 公式ドキュメント 独断と偏見に満ちた長所・短所 長所 作成したテストを様々なプログラミング言語で出力可能 (File->Export Test Suite As...) ブラウザ上での操作をSelenium IDE Commandとして記録するマクロ機能あり 短所 正直、このpluginを導入するより、普通のSeleniumを使って、システムの実装言語だけでテストが完結している方が、プロジェクトの運用コストや学習コストが低くてすむ可能性大。 スクリプトを書いてみた感じだと'''面倒くさい'''。後々のテストのメンテナンスに難あり。 その他、メモ Html内の要素の選択方法 XPath, CSS, DOM, id属性, name属性などが使える Selenium CoreのLocatorsを参照 Assertion or Verification? Assert: テストに失敗すると、それ以降のテストコマンドは実行されない Verify: テストに失敗すると、結果はFailとして表示されるが、Verify以降のテストコマンドは引き続き実行される waitForコマンドは特定の要素が出現するまで待って、出現したら次のテストコマンドを実行する。Ajax系のテストに最適。

ActionScript 3.0: Test Tools

Test Suite AsUnit : FlashDevelop からでも使えます。 AS3Unit :ActionScript 3のためのテストフレームワークです。JUnitのActionScript 3.0版といったところでしょうか。 Spark Project 上で公開されています。 FlexUnit : AdobeLabs で公開されているTestSuitです。 FlexMonkey : FlexのためのUIのテストフレームワークです。 FlexPMD : Javaで有名なPMDのFlex版といったところでしょうか。 Code Coverage Tool flexcover :Code Coverage Tool for Flex and AIR applications.

Helpful Development Tools & Software (Build, Test, Inspection, CI, etc....)

Test Tools JUnit JMeter FIT Testing Eclipse Test & Performance Tools Platform Project : Eclipseで使えるパフォーマンステストツール JUnitPerf : Performance Test tool Selenium : Web系の自動テストの決定版 zohhak : JUnit標準のparameterizedテストは色々と書くのが面倒ですが、これを使うとかなりsimpleにテストを書けます!以下はサイトに載っていたコードの例です。 @TestWith({ "clerk, 45'000 USD, GOLD", "supervisor, 60'000 GBP, PLATINUM" }) public void canAcceptDebit(Employee employee, Money money, ClientType clientType) { assertTrue( employee.canAcceptDebit(money, clientType) ); } Mock JMock EasyMock Mockito : 個人的にはこれがお勧め。使いやすいです。 Behavior Driven Development http://jbehave.org/ JDave Instinct Wikipedia にJava以外の言語のBDDツールも大量に載っています。 Code Coverage Tools ここ が参考になります。以下、代表的なものを2つあげておきます。 ATLASSIAN 社の Clover EMMA :私はこのツールを使っています。Cloverのようにグラフが表示されないのが、ちょっと残念。データ自体はあるので簡単に作れそうですが(汗)。ちなみに私は、 EMMA Reference Manual や Emma+Antをofflineモードで実行する の記事を参考にAnt scriptを書きました。 Matching hamcrest : テスト時に可読性を上げた

Test Tools for .Net

Unit Testing Framework for .Net NUnit @ITのNunitの解説ページ Code Coverage Tool for .Net NCover :I think this is the famous one rather than the one below which has the same name. The problem is this tool is not free :(. NCover : Free open source code coverage tool for .Net. partcover : This is the alternative tool of NCover. I'll try to use it ;). ReportGenerator : This can generate cool and readble code coverage report.

C++ Libraries

Testing googletest I didn't know that Google has developed C++ testing framework!! Amazing.... CppTest Testing tools available for Visual Studio BTW the following stack overflow threads really helps for finding out C++ test tools which is available for Visual Studio. There are much more than I thought. How to set up unit testing for Visual Studio C++ XML TinyXML Xerces C++ Boost Boost is the most famous C++ library. I bought the following book and was studying it. The left is original version and the right one is Japanese translated version. Beyond the C++ Standard Library: An Introduction to Boost