この記事のサンプルコードを試しています
私はコードの実際の例を持っていますが、記事の著者は PDE テスト クラス リストについて次のように述べています。
PDE テスト ランナー プロセスは、PDE テスト ランで実行するテスト クラスのコンマ区切りリストをパラメーターとして受け取ります。コード例では、実行する単一のテスト クラスの名前がハードコーディングされています。つまり、phonebookexample.dialogs.PhoneBookEntryEditorDialogTest ですが、PDE テスト クラスのリストの生成は簡単に自動化できます。
彼の例のコードでは、 -classnames 属性で単一のテスト クラスを使用しています。
<target name="run_pde_tests">
<property name="test.classes.list" value="phonebookexample.dialogs.PhoneBookEntryEditorDialogTest"/>
<mkdir dir="${test.reports.dir}/output/ws"/>
<java dir="${plugin.dir}" classname="org.eclipse.equinox.launcher.Main" fork="yes" classpathref="equinox.launcher.class.path">
<arg line="-application org.eclipse.pde.junit.runtime.uitestapplication -data ${test.reports.dir}/output/ws -dev bin -clean -port ${pde.test.port} -testpluginname PhoneBookExample -classnames ${test.classes.list}"/>
</java>
</target>
ant を使用してテスト クラスのリストを生成し、このリストを org.eclipse.pde.junit.runtime.uitestapplication の -classnames 属性に渡す方法を知っている人はいますか?