Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise an error if tests have the same name #16

Open
josephwilk opened this issue Jun 21, 2013 · 0 comments
Open

Raise an error if tests have the same name #16

josephwilk opened this issue Jun 21, 2013 · 0 comments

Comments

@josephwilk
Copy link
Owner

When there are two tests with the same name only the first one gets run. All others are ignored. This can lead to some confusing examples:

fact "this is a test" do
  false |> falsey
end

fact "this is a test" do
  false |> truthy
end

It should raise an error or make the test name unique.

Note: This is the default behaviour of ExUnit and the test macro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant