cbtest

package module
v0.0.0-...-b93a6bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

Disclaimer: cbtest is currently a pet project by danielrs.

cbtest

PkgGoDev Go Report Card Test status GitHub last commit GitHub license

cbtest is Go library that makes it easy to write automated tests against your ClearBlade systems. It provides the following features:

  • Integrates with the Go testing package and similar libraries.

  • Importing systems (with multiple system merge).

  • Destroying systems.

  • Using existing systems.

  • Uses the ClearBlade Go SDK.

Examples

They are located under the examples folder. You can run any of them like follows:

go test -v ./examples/[EXAMPLE FOLDER]

Wiki

Please refer to our wiki for more details regarding cbtest.

Contributing

To contribute, please follow the guidelines.

References

Documentation

Overview

Package cbtest contains the core definitions that cbtest uses. All the other definitions will live under their corresponding packages. Most important ones will be the config package, and the modules package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T interface {
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fail()
	FailNow()
	Helper()
	Name() string
	Log(args ...interface{})
	Logf(format string, args ...interface{})
}

T is an interface wrapper around *testing.T

Directories

Path Synopsis
Package config contains the structures, flags, and parsing of the cbtest configuration.
Package config contains the structures, flags, and parsing of the cbtest configuration.
Package contrib contains all the cbtest experimental modules.
Package contrib contains all the cbtest experimental modules.
npm
Package npm exposes a simple set of functions for running npm install and other npm scripts in a given project.
Package npm exposes a simple set of functions for running npm install and other npm scripts in a given project.
examples
internal
fsutil
Package fsutil contains functions for working with the filesystem.
Package fsutil contains functions for working with the filesystem.
merge
Package merge contains functions for merging folders and files.
Package merge contains functions for merging folders and files.
Package modules contains all the cbtest core modules.
Package modules contains all the cbtest core modules.
auth
Package auth contains functions for registering and logging in as developers, users, devices, etc.
Package auth contains functions for registering and logging in as developers, users, devices, etc.
collection
Package collection contains functions and assertions for interacting with collections.
Package collection contains functions and assertions for interacting with collections.
lookup
Package lookup provides functions for (unsafely) looking up values in dynamic maps, structures, etc.
Package lookup provides functions for (unsafely) looking up values in dynamic maps, structures, etc.
mqtt
Package mqtt contains functions and assertions for interacting with mqtt related interactions (initializing, publishing, etc).
Package mqtt contains functions and assertions for interacting with mqtt related interactions (initializing, publishing, etc).
service
Package service contains functions and assertions for interacting with services.
Package service contains functions and assertions for interacting with services.
should
Package should contains miscellaneous assertions and matchers for making the tests more expresive.
Package should contains miscellaneous assertions and matchers for making the tests more expresive.
should/format
Package format includes useful functions for creating error messages.
Package format includes useful functions for creating error messages.
should/to
Package to exposes all the core matchers that can be used with the should.Expect[E] functions.
Package to exposes all the core matchers that can be used with the should.Expect[E] functions.
system
Package system contains functions using, importing, saving, and destroying systems.
Package system contains functions using, importing, saving, and destroying systems.
Package provider defines interface for obtaining instances of objects that we commonly use in all the modules.
Package provider defines interface for obtaining instances of objects that we commonly use in all the modules.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL