tree: 409ee98212fe0c32e0885bedc9e64bf73e4ac127 [path history] [tgz]
  1. fixtures/
  2. functional/
  3. integration/
  4. scripts/
  5. unit/
  6. utils/
  7. README.md
tests/README.md

Tests in Teaclave

make run-tests
make run-unit-tests
make run-integration-tests
make run-functional-tests

Directory Structure

  • unit: Unit tests are small and more focused, testing one module in isolation at a time, and can test private interfaces. This directory contains test driver to test individual units/components or private interfaces. Test cases of unit tests are placed along with source code.
  • integration: Integration tests are entirely external to libraries, using only the public interface and potentially exercising multiple modules per test. This directory contains test driver and tests cases to test public interfaces in common libraries.
  • functional: Functional testing is a type of black-box testing. In Teaclave, the test cases are usually sent through RPC channel. This directory contains test driver and tests cases for Teaclave services. To run these tests, services need to be launched.
  • fixtures: Testing fixtures are some files and sample inputs/outputs for testing only.
  • utils: Common utilities for test drivers.