Skip to content

DefactoSoftware/assert_async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hex.pm

AssertAsync

Assert tests with retries for async testing.

Installation

Can be installed via git:

def deps do
  [
    {:assert_async, git: "https://github.com/defactosoftware/assert_async", only: [:test]}
  ]
end

usage in test

defmodule YourApp.SomeModuleTest do
  use ExUnit.Case

  import AssertAsync

  test "testing something async" do
    some_async_insert()

    assert_eventually(Ecto.Repo.exists?(InsertedThing))
  end
end

About

Elixir library to assert in tests for async calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages