{"repo":"elixir-wallaby/wallaby","free":true,"listed":false,"github":"https://github.com/elixir-wallaby/wallaby","clone":"git clone https://github.com/elixir-wallaby/wallaby.git","description":"Concurrent browser tests for your Elixir web apps.","language":"Elixir","stars":1802,"topics":["testing","elixir","ecto","wallaby","phoenix","hacktoberfest"],"license":"MIT","category":"dev-tools","readme_excerpt":"Wallaby helps you test your web applications by simulating realistic user interactions. By default it runs each test case concurrently and manages browsers for you. Here's an example test for a simple Todo application: Because Wallaby manages multiple browsers for you, its possible to test several users interacting with a page simultaneously. Read on to see what else Wallaby can do or check out the Official Documentation. Sponsors Your company's name and logo could be here! Setup Requirements Wallaby requires Elixir 1.17+ and OTP 26+. Wallaby also requires bash to be installed. Generally bash is widely available, but it does not come pre-installed on Alpine Linux. Installation Add Wallaby to your list of dependencies in mix.exs : Configure the driver. You'll need to install the actual drivers as well. - Chrome - chromedriver - Selenium - selenium - geckodriver (for Firefox) or chromedriver (for Chrome) Ensure that Wallaby is started in your test helper.exs : When calling use Wallaby.Feature and using Ecto, please configure your otp app . Phoenix Enable Phoenix to serve endpoints in tests: In your test helper.exs you can provide some configuration to Wallaby. At a minimum, you need to specify a :base url , so Wallaby knows how to resolve relative paths. Ecto If you're testing a Phoenix application with Ecto and a database that supports sandbox mode, you can enable concurrent testing by adding the Phoenix.Ecto.SQL.Sandbox plug to your Endpoint . It's important that this is at t","default_branch":null,"files":null,"tree":[],"storefront":"/r/elixir-wallaby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/elixir-wallaby/wallaby/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}