目次

NVDA 自動テストの実行

since 2024-05-31

本家版

開発環境の作成

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

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

日本語版 2024年9月

Add test for WAIC-TEST-0029-01

https://github.com/nvdajp/nvdajp/pull/479