Logo
master

Introduction

  • The Tezos blockchain
  • How to get Tezos
  • Getting started with Octez
  • How to run Octez
  • Test Networks
  • Installation troubleshooting
  • Technical Support
  • BREAKING CHANGES

User doc

  • Versions
  • Setting up the client
  • Setting up the node
  • Multi-signature smart contracts
  • FA1.2 asset smart contracts
  • Logging
  • Various

Shell doc

  • Tezos Software Architecture
  • The Octez Shell
  • Data Availability Committees
  • P2P message format
  • Command Line Interface
  • Shell RPCs - Reference

Nairobi Protocol doc

  • The economic protocol
  • Glossary
  • Command Line Interface
  • Nairobi RPCs - Reference

Oxford Protocol doc

  • The economic protocol
  • Glossary
  • Command Line Interface
  • Oxford RPCs - Reference

Alpha Dev Protocol doc

  • The economic protocol
  • Glossary
  • Command Line Interface
  • Alpha RPCs - Reference

Tezos developer doc

  • JSON/RPC interface
  • Michelson Anti-Patterns
  • Supported Open Metrics
  • RPC Errors
  • RPCs - OpenAPI reference

Platform developer doc

  • Contributing
  • Programming tutorials
  • Testing in Octez
    • Overview of Testing in Octez
    • Ppx_expect
    • Tezt: OCaml Tezos Test Framework
    • Tezt: Long Tests and Performance Regression Test Framework
    • Alcotezt: An Alcotest Compatibility Wrapper for Tezt
    • Making legacy code unit-testable
    • How to Test a Protocol Proposal
  • Maintaining
  • Documenting
  • Platform Development tools
  • Encodings
  • Merkle Proof Encoding Formats
  • OCaml APIs - Reference

Protocols

  • Protocol versioning
  • Protocol Nairobi
  • Protocol Oxford
  • Protocol Alpha
  • Older Protocols

Releases

  • Release System
  • Version 18.0
  • Older Versions
Tezos
  • »
  • Testing in Octez
  • View page source

Testing in OctezΒΆ

Testing is important to ensure the quality of the Octez codebase by detecting bugs and avoiding regressions. Octez and its components use a variety of tools and frameworks for testing.

This page groups the documentation helping developers to design, write, and execute tests on the Octez codebase. It covers different kinds of tests (Unit, Integration, etc.) and the associated tools and frameworks. It also includes tutorials for testing more specific parts such as protocol code.

  • Overview of Testing in Octez
    • Testing frameworks
    • Executing tests locally
    • Executing tests through the GitLab CI
    • Conventions
  • Ppx_expect
    • How to run tests
    • How to add tests
    • Where to put the tests
    • Integration with Lwt
  • Tezt: OCaml Tezos Test Framework
    • How to Run Tests
    • How to Write New Integration Tests
    • How to Write New Unit Tests
    • Regression Tests
    • Pre-commit hook
  • Tezt: Long Tests and Performance Regression Test Framework
    • Adding a Long Test
    • Performance Regression Test framework: Time Series, Alerts and Graphs
    • Example
    • Providing Large Data
    • Testing Your Benchmarks Locally
  • Alcotezt: An Alcotest Compatibility Wrapper for Tezt
    • Running Alcotezts
    • Notable Differences Between Alcotest and Alcotezt
  • Making legacy code unit-testable
    • Solutions
  • How to Test a Protocol Proposal
    • The master Branch
    • Unit Tests and Sandboxed Mode
    • Testing Migration Code
    • Migration Testing
    • Wrap up the Migration Procedure
    • Tips and Tricks
    • Anatomy of Migration Code
Next Previous

© Copyright 2018-2023, Nomadic Labs <contact@nomadic-labs.com>.

Built with Sphinx using a theme provided by Read the Docs.