Documentation function

The function executes a specified test case.

Function type: Test

import "testing"
  case: exampleTestCase



Test case to run.

Data type: Function


Define and execute a test case
import "testing"

inData = "

outData = "

t_sum = (table=<-) =>
    |> range(start:2021-01-01T00:00:00Z, stop:2021-01-03T01:00:00Z)
    |> sum())

test _sum = () =>
  ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_sum}) _sum)

Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: