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 clean script to remove test-browser.js after the tests run #1332

Merged
merged 1 commit into from Jan 6, 2015
Merged

Add clean script to remove test-browser.js after the tests run #1332

merged 1 commit into from Jan 6, 2015

Conversation

seanstrom
Copy link
Contributor

Whenever you run npm test it would generate a file.
The location of the file would be tests/browser/test-browser.js
which is a directory that the linter will lint.
I tried making the linter ignore the file but it seems we're using
an older version of the linter which may not support ignoring paths.

I may be wrong but this was an alternative solution, safely delete
the file before running the linter.

@simov
Copy link
Member

simov commented Jan 5, 2015

Nice! I have that file hanging around in my repo for quite some time.

@nylen
Copy link
Member

nylen commented Jan 5, 2015

Why not do this at the end of test-browser instead? That way the file doesn't stick around in our repos.

@FredKSchott
Copy link
Contributor

Nice, good catch @seanstrom
+1 to @nylen, tests should probably be performing cleanup after tests have run

@seanstrom
Copy link
Contributor Author

+1 @nylen I totally didn't think of doing it after the test end. lol

@seanstrom
Copy link
Contributor Author

Would we want a clean-lint script at all?

@nylen
Copy link
Member

nylen commented Jan 6, 2015

I don't see any need for clean-lint. If you agree, this looks good to me, so can you squash the two commits together and I'll merge?

@seanstrom
Copy link
Contributor Author

Yup sounds good

Whenever you run `npm test` it would generate a file.
The location of the file would be `tests/browser/test-browser.js`
which is a directory that the linter will lint.
I tried making the linter ignore the file but it seems we're using
an older version of the linter which may not support ignoring paths.

I may be wrong but this was an alternative solution, safely delete
the file before running the linter.
@nylen nylen changed the title Add clean script to remove test-browser.js before lint Add clean script to remove test-browser.js after the tests run Jan 6, 2015
nylen added a commit that referenced this pull request Jan 6, 2015
Add clean script to remove test-browser.js after the tests run
@nylen nylen merged commit 0be8ce4 into request:master Jan 6, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 63f9b18 on seanstrom:support/npm-clean-script into 3786137 on request:master.

@seanstrom seanstrom deleted the support/npm-clean-script branch January 6, 2015 18:36
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.

None yet

5 participants