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

New Elixir Module Kind: ExUnit Test #212

Closed
Havvy opened this Issue Nov 26, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@Havvy
Copy link

Havvy commented Nov 26, 2015

  1. Has a default passing test inside of it.
  2. Makes sure the file ends with "_test.exs"

That's about it.

@KronicDeth

This comment has been minimized.

Copy link
Owner

KronicDeth commented Dec 27, 2015

@Havvy, can you explain the full use case? I'm just wondering if what you actually want is the Go To Test functionality that Rubymine has for specs and if your actual use case is if Go To Test doesn't work, it prompts to create a test file for the current module? I can do the template form first, but I want to know if I should be able to infer the test module name from the module under test as a follow on feature.

@DylanGriffith

This comment has been minimized.

Copy link

DylanGriffith commented Feb 5, 2016

I'm not sure i understand the conversation on here but I also have a desire for the feature "New Elixir Module Kind: ExUnit Test"

Basically the problem I see it is that if I try to use the "New -> Elixir File" functionality right now I end up with a file that has a .ex extension and then I need to manually rename to .exs.

So ideally this functionality would simply be a new menu option in the file explorer thing where I say "New -> Elixir Test" and it will use the .exs extension. As a bonus the template could be the same as the test example mix new generates which has the use ExUnit.Case in it.

Of course the thing you are describing about "Go To Test" sounds useful but that wasn't how I understood this github issue and I have a need for what I think @Havvy is asking for.

@Havvy

This comment has been minimized.

Copy link

Havvy commented Mar 27, 2016

Basically what Dylan Griffith says.

The "Go To Test" thing sounds orthogonal, and potentially useful (to others). I just want a template for tests that ExUnit can be ran with without having to create a file and then rename. And I'm guessing so do others.

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