---
title: testing package
description: The testing package provides functions for testing Flux operations.
url: https://docs.influxdata.com/flux/v0/stdlib/testing/
estimated_tokens: 642
product: Flux
version: v0
---

# testing package

-   Flux 0.14.0+
-   View InfluxDB support

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

```js
import "testing"
```

## Options

```js
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

-   [testing.assertEmpty()](/flux/v0/stdlib/testing/assertempty/)
-   [testing.assertEquals()](/flux/v0/stdlib/testing/assertequals/)
-   [testing.assertEqualValues()](/flux/v0/stdlib/testing/assertequalvalues/)
-   [testing.diff()](/flux/v0/stdlib/testing/diff/)
-   [testing.load()](/flux/v0/stdlib/testing/load/)
-   [testing.shouldError()](/flux/v0/stdlib/testing/shoulderror/)

## Packages

### [expect package](/flux/v0/stdlib/testing/expect/)

The `expect` package includes functions to mark any expectations for a testcase to be satisfied before the testcase finishes running.
