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

Add a --verbose flag #211

Open
DanKaplanSES opened this issue Dec 7, 2023 · 1 comment
Open

Add a --verbose flag #211

DanKaplanSES opened this issue Dec 7, 2023 · 1 comment

Comments

@DanKaplanSES
Copy link

DanKaplanSES commented Dec 7, 2023

This could save a lot of time when troubleshooting unexpected behavior. I was trying to set up a new project and went through this experience:

  1. I created a spec with expect(true).toBe(false); and ran jasmine.
  2. Why does it say no specs found? Where is it looking?
  3. Does the command line have a --verbose flag (or equivalent)? No. Not that I can find.
  4. Then I googled. I couldn't find anything relevant, but some of the links gave me ideas.
  5. I had set "spec_dir" to "", ".", "/", and "./"—something I've never done before. Is this a bug of some sort, where Jasmine doesn't scan for specs in the same directory as "spec_dir"?
  6. No, because I created a subdirectory and put a spec in there. It couldn't find it either. Is this a limitation of some sort, where you can't specify a "spec_dir" at the project root?
  7. No, because...
  8. Is my config file actually being used?
  9. No. My config file isn't named jasmine.json, so jasmine won't use it by default. That's the problem.

I've run into similar problems in the past where a --verbose flag would've helped so I'd like to request this as a feature. Thanks


jasmine v5.1.0
jasmine-core v5.1.1
@DanKaplanSES DanKaplanSES changed the title Add a --verbose flag that prints where jasmine looked for spec files. Add a --verbose flag Dec 7, 2023
@sgravrock
Copy link
Member

That seems like a nice feature to have. I'd be happy to review a PR that adds it.

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

2 participants