Skip to content

Instantly share code, notes, and snippets.

@davidmukiibi
Last active November 15, 2019 13:03
Show Gist options
  • Save davidmukiibi/2111e1782c147c26066fcd599a7a9983 to your computer and use it in GitHub Desktop.
Save davidmukiibi/2111e1782c147c26066fcd599a7a9983 to your computer and use it in GitHub Desktop.
These are the changes between running k6 tests from local vs cloud
# 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
run:
name: Running Load Tests Using K6
command: |
k6 cloud tests/cloud-test.js
# change 3
run_perfomance_tests:
<<: *defaults
steps:
- checkout
- *login_loadimpact
- *k6_performance_tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment