Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.33 KB

File metadata and controls

53 lines (36 loc) · 1.33 KB

BehaviourTest

Diagram

It's a simple project made to test the batch_elixir.

  • The elixir folder contains the elixir code wrapping the batch_elixir with an HTTP endpoint.
  • The nodejs folder contains the code for the webapp server

Testing

Docker image

The docker image is based on elixir 1.6 deiban stretch with java, selenium and firefox

Requirements

In order to launch the test you need docker and docker-compose

Launch

You will need the rest api key you can either

  • export the variable REST_API_KEY
  • Set it when asked in the launch script.
./launch.sh

Testing without docker

To test without docker you will need

Steps to launch the tests:

  • Update the config/config.exs to add
    config :batch_elixir, rest_api_key: "rest api key"
  • Launch selenium
    java -Dwebdriver.gecko.driver=/path/to/geckodriver -jar /path/to/selenium-standalone
  • Launch the test
    mix test