Skip to content

jameshill/example-test-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

203 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example RSpec Test Suite

This is a sample RSpec Test Suite which uses Buildkite's Test Analytics observability and automation tooling to track test performance, reliability and uses Buildkite's test-splitter to split the suite of tests.

Fetching the Test Splitter

The Dockerfile fetches the test-splitter binary from GitHub and builds it into the Docker container. This is then called by the ./.buildkite/steps/run Bash script.

Include/Exclude filters

This example suite uses BUILDKITE_SPLITTER_TEST_FILE_PATTERN env var to further partition the test suite into unit and acceptance specs. The BUILDKITE_SPLITTER_IDENTIFIER env var is used to ensure that a unique key is used to define the two steps.

Updating Test Ownership

Buildkite Test Analytics offers the concept of test ownership.

By utilising a TESTOWNERS file

*login*.rb    iam
*logout*.rb   iam
*password*.rb iam
*org*.rb      iam
*team*.rb     iam
*user*.rb     iam

*checkout*.rb billing

smoke/*       platform
e2e/*         platform

We can automatically assign flaky tests to their owners

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages