github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/docs/source/testing.rst (about)

     1  Testing
     2  =======
     3  
     4  Unit test
     5  ~~~~~~~~~
     6  See :doc:`building Hyperledger Fabric <dev-setup/build>` for unit testing instructions.
     7  
     8  See `Unit test coverage reports <https://jenkins.hyperledger.org/view/fabric/job/fabric-merge-x86_64/>`__
     9  
    10  To see coverage for a package and all sub-packages, execute the test with the ``-cover`` switch:
    11  
    12  ::
    13  
    14      go test ./... -cover
    15  
    16  To see exactly which lines are not covered for a package, generate an html report with source
    17  code annotated by coverage:
    18  
    19  ::
    20  
    21      go test -coverprofile=coverage.out
    22      go tool cover -html=coverage.out -o coverage.html
    23  
    24  
    25  System test
    26  ~~~~~~~~~~~
    27  
    28  [WIP] ...coming soon
    29  
    30  This topic is intended to contain recommended test scenarios, as well as
    31  current performance numbers against a variety of configurations.
    32  
    33  .. Licensed under Creative Commons Attribution 4.0 International License
    34     https://creativecommons.org/licenses/by/4.0/
    35