caiogondim / bullet-train.zsh

:bullettrain_side: An oh-my-zsh shell theme based on the Powerline Vim plugin
MIT License
2.82k stars 382 forks source link

How do you test this theme? #175

Open denysdovhan opened 8 years ago

denysdovhan commented 8 years ago

Hi!

I'm author of spaceship-zsh-theme. I have an issue with testing my theme:

https://github.com/denysdovhan/spaceship-zsh-theme/pull/36#issuecomment-256475914

I saw this in your Makefile:

#
test:
    npm test

But as I noticed, you don't have any package.json in your repo. Can you explain how you test your theme? I will be glad if you share this experience with me. Probably it may help a lot of my users.

Thank you!

caiogondim commented 8 years ago

Back in the day I was testing (actually linting) the code So it was not a unit test

I'm still willing to test the code, but not sure how I will do it Probably using bats with lots of mocks

For linting I tried to use shellcheck but without success

Please let me know if you manage to put some tests on your theme Would love to implement here as well

denysdovhan commented 8 years ago

Of course, I will.

Thank you for response! Let's leave this issue open, okay?