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

Update tests with .test prefix structure for simplified grepping #1233

Merged
merged 4 commits into from
Aug 15, 2017

Conversation

damassi
Copy link
Member

@damassi damassi commented Aug 15, 2017

This PR updates our test filenames to match a new filename.test.coffee pattern, enabling us to simplify how we find and execute said tests:

$(BIN)/mocha $(shell find api -name '*.test.coffee')
$(BIN)/mocha $(shell find client -name '*.test.coffee')

(No more /*/*/*/test and exclusion matching required.)

@kanaabe
Copy link
Contributor

kanaabe commented Aug 15, 2017

No worries! Thanks for the quick fix 👍

@kanaabe
Copy link
Contributor

kanaabe commented Aug 15, 2017

So down for the extensions -- wanna update the Makefile as well?

@damassi
Copy link
Member Author

damassi commented Aug 15, 2017

Yup yup, on it now 👍

$(BIN)/mocha $(shell find client/apps/*/**/*/**/test -name '*.coffee' -not -path 'test/helpers/*')
$(BIN)/mocha $(shell find client/apps/*/**/*/**/*/test -name '*.coffee' -not -path 'test/helpers/*')
$(BIN)/mocha $(shell find api -name '*.test.coffee')
$(BIN)/mocha $(shell find client -name '*.test.coffee')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change also clears the way to co-locate your tests with your sources should you ever want to go that route.

@damassi damassi changed the title Fix Makefile Update tests with .test prefix structure for simplified grepping Aug 15, 2017
@damassi damassi merged commit 7522cba into artsy:master Aug 15, 2017
@damassi damassi deleted the fix-forever branch August 15, 2017 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants