NVDA 自動テストの実行

since 2024-05-31

  • Windows 11 (x64) 日本語環境 (cp932)
  • 本日時点での本家 master ブランチ

開発環境の作成

ビルドを通すためのパッチ

  • eSpeakNG の文字コードで引っかかる
diff --git a/nvdaHelper/espeak/sconscript b/nvdaHelper/espeak/sconscript
index 8a3f3cc9d..cbe59996e 100644
--- a/nvdaHelper/espeak/sconscript
+++ b/nvdaHelper/espeak/sconscript
@@ -116,6 +116,9 @@ env.Append(
                espeakSrcDir.Dir('ucd-tools/src/include')
        ])

+# tr_languages.c should compile on environments such as Japanese Windows
+env.Append(CCFLAGS=' /utf-8')
+
 def espeak_compilePhonemeData_buildEmitter(target,source,env):
        phSourceIgnores=['error_log','error_intonation','compile_prog_log','compile_report','envelopes.png']
        phSources=env.Flatten([[Dir(topDir).File(f) for f in files if f not in phSourceIgnores] for topDir,subdirs,files in os.walk(source[0].abspath)])

プロジェクトに scons.bat があるので、いきなり下記を実行できることを確認。

scons source

実行(終了するには NVDA+Q またはタスクトレイのNVDAメニュー)

runnvda

自動テストを実行するまで

https://github.com/nvaccess/nvda/blob/master/projectDocs/testing/automated.md

scons tests

rununittestss

runsystemtests --include NVDA

システムテストの詳細

https://github.com/nvaccess/nvda/blob/master/tests/system/readme.md

Chromeテストの無効化を解除する

diff --git a/tests/system/robot/chromeTests.robot b/tests/system/robot/chromeTests.robot
index 2decbcfcf..82126b0f7 100644
--- a/tests/system/robot/chromeTests.robot
+++ b/tests/system/robot/chromeTests.robot
@@ -4,7 +4,7 @@
 # For more details see: https://www.gnu.org/licenses/gpl-2.0.html
 *** Settings ***
 Documentation  HTML test cases in Chrome
-Force Tags     NVDA    smoke test      browser chrome  excluded_from_build
+Force Tags     NVDA    smoke test      browser chrome

 # for start & quit in Test Setup and Test Test Teardown
 Library        NvdaLib.py

現時点での状況

Robot                                                                 | FAIL |
49 tests, 6 passed, 43 failed
  • testOutputフォルダにログが保存される
  • Chromeがすでに起動している場合は、そのインスタンスでコンテンツが表示されている?
nvda_testing_automated.txt · 最終更新: 2024/05/31 11:01 by Takuya Nishimoto
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0