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

The analyzer should also detect describes #11

Open
ignacio-chiazzo opened this issue Mar 12, 2022 · 0 comments
Open

The analyzer should also detect describes #11

ignacio-chiazzo opened this issue Mar 12, 2022 · 0 comments

Comments

@ignacio-chiazzo
Copy link
Owner

ignacio-chiazzo commented Mar 12, 2022

describe uses subclasses under the hood which causes the tests to run multiple times. See this example:

class Foo < ActiveSupport::TestCase
  describe("something") do
    test("foo") do
      "my test"
    end
  end

  describe("something else") do
    test("bar") do
      "something"
    end
  end

  test("baz") do
    "I will run 3 times"
  end
end

minitest/minitest#839

The analyzer should detect multiple tests run by the describe.

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