Skip to content

neo-project/neo-testcases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neo-testcases

This project contains the functional testcases for neo blockchain.

Usage

  • Step 1: Start a neo privatenet/localnet with 7 nodes(DBFT and RpcServer plugins required)

    Build neo with dotnet build and then start privatenet/localnet with neo/scripts/run-localnet-nodes.sh.

    cd to neo source directory and then run the following commands:

    dotnet build
    cd scripts
    ./run-localnet-nodes.sh  # or ./run-localnet-nodes.ps1 on Windows
  • Step 2: Initialize testcase running environment

    cd to neo-testcases directory and then run the following commands:

    python3 -m venv venv  # Python3.12 and later is required
    source venv/bin/activate # or venv/bin/Activate.ps1 on Windows
    pip3 install -r requirements.txt
  • Step 3: Set tested

    The default testbed is testbed/localnet.json, if you want to use other testbed, need to create a new testbed file.

  • Step 4: Run the tests

    cd to neo-testcases directory and then run the following commands:

    ./run_tests.sh # or ./run_tests.ps1 on Windows
  • After tests

    Stop the privatenet/localnet and clean the data. cd to neo source directory and then run the following commands:

    cd scripts
    ./run-localnet-nodes.sh stop  # or ./run-localnet-nodes.ps1 stop on Windows
    rm -rf localnet_nodes

About

Functional testcases for neo blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •