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!

Linux Package Signing Key Rotation

All signed InfluxData Linux packages have been resigned with an updated key. If using Linux, you may need to update your package configuration to continue to download and verify InfluxData software packages.

For more information, see the Linux Package Signing Key Rotation blog post.