kostonstyle

kostonstyle

Hi all

Can someone please explain me what the tags mean here?

  setup tags do
    {:ok, conn: Phoenix.ConnTest.build_conn()}
  end

Thanks

Showing Posts 1 to 3

hubertlepicki

hubertlepicki

Read this:

http://blog.simonstrom.xyz/elixir-testing-tag-tests-in-exunit/

usually it’s called “context” not “tags” because it is basically current test metadata that can be set either by testing framework/lib or you, manually, specifying tag.

ericmj

ericmj

Elixir Core Team

The argument to setup is the “test context” which contains all metadata for the currently running test [1]. Tests can be tagged and those tags will live in the context [2].

[1] ExUnit.Case — ExUnit v1.20.2
[2] ExUnit.Case — ExUnit v1.20.2

arcanemachine

arcanemachine

That link is dead. Here’s an archived version for anyone else who stumbles on this thread:

— All posts loaded —

Where Next? Top

Trending in Questions Top

Hellowman
Hello everyone! I am new to coding with Elixir/Erlang. And i am looking for some utilities for fuzzing testing like AFL++. Does anyone ...
New
yarrichar
I’m very new to Elixir, so sorry if this is a silly question: I am wondering what happens to the mailbox of a process when the machine i...
New
pragdave
How do I tell Hologram not to escape HTML when substituting into templates? {Textile.render(@product.long_description)} escapes the HTM...
New
Fl4m3Ph03n1x
Background When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error: * assembling mark...
New
mandar1045
I load tested a plain Phoenix chat app backed by Postgres with 100 million messages in it, everything on default settings, to see what br...
New
rlipscombe
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New
saleyn
Is there a way to import record definitions in the iex shell for pretty printing (similar to the rr command in the erl shell)? This woul...
New

Other Trending Topics Top

carlosj
Hi all, I have published the first public release, 0.1.0, of Malla, a framework for distributed services in Elixir. A service is a modu...
New
emkguts
Senior Full Stack Engineer (Elixir + React) - Mux, Remote USA Introductory paragraph Mux is video infrastructure for developers and their...
New
GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13127 112
New
dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews