testing package
The testing package provides functions for testing Flux operations.
Import the testing package:
import "testing"Options
option testing.load = (tables=<-) => tables
option testing.tags = []load
load loads test data from a stream of tables.
tags
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.
Functions
Packages
expect package
The expect package includes functions to mark any expectations for a testcase to be satisfied before the testcase finishes running.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.