This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
k6_performance_tests: &k6_performance_tests | |
run: | |
name: Running Load Tests Using K6 | |
command: | | |
k6 cloud tests/cloud-test.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following block of code resides in the options code block | |
ext: { | |
loadimpact: { | |
name: "k6 cloud test!", | |
distribution: { | |
scenarioLabel1: { loadZone: "amazon:us:ashburn", percent: 100 } | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
run_any_tests_here: &run_any_tests_here | |
run: | |
name: Run Tests | |
command: | | |
cd tests_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change 1 | |
login_loadimpact: &login_loadimpact | |
run: | |
name: Logging into loadimpact | |
command: | | |
k6 login cloud --token $K6_CLOUD_TOKEN | |
# change 2 | |
k6_performance_tests: &k6_performance_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
run_any_tests_here: &run_any_tests_here | |
run: | |
name: Run Tests | |
command: | | |
cd tests_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { check, sleep } from "k6"; | |
import http from "k6/http"; | |
export let options = { | |
stages: [ | |
{ duration: "60s", target: 10 }, | |
{ duration: "60s", target: 0 } | |
], | |
thresholds: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { check, sleep } from "k6"; | |
import http from "k6/http"; | |
export let options = { | |
stages: [ | |
{ duration: "60s", target: 10 }, | |
{ duration: "60s", target: 0 } | |
], | |
thresholds: { |
NewerOlder