Packet Café
  • Overview
  • Design
    • Architecture
    • API
    • Storage
    • Tools
  • Deployment
    • Prerequisites
    • Linux
    • macOS
    • Orchestration
  • Getting Started
    • Uploading PCAP Files
    • Results
  • Testing
    • Apache Benchmark
    • Curl and Datamash
    • Unit Tests
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Testing

Unit Tests

PreviousCurl and DatamashNextFAQ

Last updated 4 years ago

Was this helpful?

Tests are run automatically using GitHub Actions and are defined . Currently there are tests written for the ui container and the web container.

The ui container uses npm for running unit tests and the web container uses py.test . Each container has a Dockerfile.test defined that runs each container's respective tests.

To add more tests, add them relative to each component, as opposed to globally at the root of the project. This allows components to be build and tested without having to rely on the entire ecosystem of the project.

Be aware that currently there are no integration tests.

here