As you think about bringing in CloudBees Smart Tests, there are a few configuration topology options to think about.
Simple configurations
Attach log files for a test session run
CloudBees Smart Tests uses log files from test runs to further analyze test results and help diagnose failures.
Implementation: Logs produced during test sessions can be submitted as attachments.
Value unlocked: - Issues dashboard (identifies new, resolved, and ongoing issues across multiple runs)
Single source repository (correlate commit data with test failures for Predictive Test Selection)
If you plan to use PTS, sending build information is critical to correlate commit data with test failures.
Implementation:
To record a build, run CloudBees Smart Tests record build before creating a build in your CI script.
Value unlocked: - Predictive Test Selection factors in commit information to predict what tests to run.
Same test suite runs in multiple different environments
For cases where your test results depend on the browser or runtime environment.
Implementation:
When submitting test results using CloudBees Smart Tests record tests, you can submit additional metadata as key-value pairs using the --flavor option.
Value unlocked: - Predictive Test Selection can find tailored tests to run for specific environments.
Multiple test suites run against the same build sent over to CloudBees Smart Tests
If different test suites are run against the same build, separate them into distinct “test suites” to improve data analysis across the system.
Implementation:
When invoking the CloudBees Smart Tests record tests command, specify the --test-suite option and assign it a test suite name.
Value unlocked: - Improved quality of data analysis through the platform - UI allows drill-down by test suite for detailed analysis
Multiple repositories combined in one build, then tested
If builds are created by combining code from multiple repositories, this setup applies.
Implementation:
Invoke CloudBees Smart Tests record build with multiple --source options to denote them.
Value unlocked: - Enables multi-repo data correlation within a single build.
Complex configurations
Build and test processes happen on different machines
Implementation: You’ll need to manually create a test session ID to run tests.
Combining test reports from multiple runs
Implementation: Some pipelines execute multiple test runs against a build, outputting separate reports across several machines. Depending on your setup (see Test Session), you may want to merge these into a single test session.