Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add e2e test helpers #666

Merged
merged 3 commits into from
Aug 31, 2020
Merged

Add e2e test helpers #666

merged 3 commits into from
Aug 31, 2020

Conversation

darkowlzz
Copy link
Contributor

This introduces some e2e test helpers to make it easier to write e2e tests.

Package github.com/weaveworks/ignite/e2e/util/ignite provides type Ignite with functional options to set the properties of ignite operations. There will be a similar package for ignited in the future to help write ignited e2e tests.
All the repeated error handling is handled by the test helpers, making the tests less verbose.

Updates all the existing e2e tests to use the test helpers.

@darkowlzz darkowlzz added the area/testing Issues related to improving testing label Aug 22, 2020
@darkowlzz darkowlzz requested a review from twelho as a code owner August 22, 2020 22:07
The helper package provides a type Command with attributes about ignite
execution and methods to execute ignite commands with error checks.
This simplifies a lot of the duplicate code in the e2e tests and
provides reusable code to make e2e tests less verbose.
This Command can be used to run commands for ignite and ignited.
@stealthybox stealthybox merged commit 8780d77 into weaveworks:master Aug 31, 2020
@darkowlzz darkowlzz deleted the e2e-helpers branch August 31, 2020 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/testing Issues related to improving testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants