Skip to content

Providing test context while using test_with_server #55

@faizann

Description

@faizann

How can we use test context from ExUnit while using test_with_server instead of test from ExUnit?

For example, we can use this syntax with ExUnit test macro.

test "uses metadata from setup", context do
    assert context[:hello] == "world"
    assert context[:from_named_setup] == true
  end

but we cannot provide a context for
test_with_server as the second parameter is opts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions