microservices-demo/e2e-tests

Name: e2e-tests

Owner: Microservices Demo

Description: End to end tests for the socks shop

Created: 2016-12-22 22:40:53.0

Updated: 2018-01-16 00:01:23.0

Pushed: 2017-09-08 08:50:44.0

Homepage: null

Size: 10

Language: Nix

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

End-to-end tests for the Socks shop.

Build Status

This repo contains a a set of end-to-end tests, that we use to verify that changes to the shop don't cause regressions.

Futhermore, it can be used to verify that swapping out a service (lets say the payment service) by one implemented in a different language, that things still work as intended.

How to run these tests

By running the following command, all tests in the tests directory will be run:

er build -t weaveworksdemos/e2etests .
er run --rm -e URL=<HOSTNAME> weaveworksdemos/e2etests

If you want to run only the login and add_holy_to_cart tests, run:

er run --rm -e URL=<HOSTNAME> weaveworksdemos/e2etests login.rb add_holy_to_cart.rb
Building test runner

The test runner can be build using nix-build.

localhost $(nix-build)/bin/e2etest tests/add_holy_to_cart.rb test/checkout_holy.rb

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.