-
Notifications
You must be signed in to change notification settings - Fork 45
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
Trying to execute a single ExUnit test #34
Comments
Didn't succeed in running the single test. (decided to move on with the Phoenix tutorial ...) |
I managed to run tests by following this You need to create a To get a single test running do the following:
paste the above into Then run:
And it should work |
@Shouston3 yeah, I should have clarified that I was trying to avoid creating a new project using |
In that case you could run:
Having a good weekend thanks, hope you're having a great one too |
@nelsonic happy for you to close this 👍 |
@Shouston3 my next PR will close it. 👍 |
Tried using the code in the book on p.131. (copied verbatim):
tried to run the individual file in the terminal.
But got the following error:
Screenshot:
Looked at https://hexdocs.pm/ex_unit/ExUnit.Case.html but no luck.
Also looked at https://elixirschool.com/lessons/basics/testing and didn't get much enlightenment...
I'm trying to execute a single test file ...
looked at: http://stackoverflow.com/questions/26150146/how-can-i-make-mix-run-only-specific-tests-from-my-suite-of-tests
Tried
mix test basic-test.exs
andmix test --only basic-test.exs
This question might be more appropriate in https://github.com/dwyl/learn-elixir ...
but I figured that given its from the "Programming Phoenix" book, other people might find it here....
The text was updated successfully, but these errors were encountered: