Skip to content

Commit

Permalink
Merge branch 'yg3630536-feature/optimization-test-doc'
Browse files Browse the repository at this point in the history
  • Loading branch information
junqizhang-dev committed Apr 24, 2020
2 parents d037e2b + 10c4051 commit 92c5c5a
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions docs/_sources/docs/how-to-run-unit-test.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,29 @@ LINUX 系统上通过 gradle 执行单元测试
cp fisco.properties weidentity.properties ../../src/test/resources/
3, 将生成好的 ``ca.crt`` 和 ``client.keystore`` 复制到
``src/test/resources`` 目录, 这两个证书是 WeIdentity 运行所需要的 SDK
证书
3, 将证书文件复制到 ``src/test/resources`` 目录,证书是 WeIdentity 运行所需要的 SDK 证书。

* 如果您使用的是 FISCO BCOS1.X 版本,请将您的 ``ca.crt`` 和 ``client.keystore`` 复制到 ``src/test/resources`` 目录

.. code:: shell
cp ca.crt client.keystore ../../src/test/resources/
4, 回到项目根目录,执行测试命令。
* 如果您使用的是 FISCO BCOS2.X 版本,请将您的 ``ca.crt``、``node.crt`` 和 ``node.key`` 复制到 ``src/test/resources`` 目录。

.. code:: shell
cp ca.crt node.crt node.key ../../src/test/resources/
4, 将字体 ``NotoSansCJKtc-Regular.ttf`` 复制到 ``src/test/resources`` 目录,并进行字体安装。

.. code:: shell
cp ../lib/NotoSansCJKtc-Regular.ttf ../../src/test/resources/
注:字体安装请参照 \ `技术问题列表 <./faq.html>`__\ 中的字体安装说明。

5, 回到项目根目录,执行测试命令。

.. code:: shell
Expand Down

0 comments on commit 92c5c5a

Please sign in to comment.