testing package

The testing package provides functions for testing Flux operations. Import the testing package:

import "testing"


option testing.load = (tables=<-) => tables

option testing.tags = []


load loads test data from a stream of tables.


tags is a list of tags that will be applied to a test case.

The test harness allows filtering based on included tags.

Tags are expected to be overridden per test file and test case using normal option semantics.



Was this page helpful?

Thank you for your feedback!

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.