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

ISSUE-79: Introduce smoke tests #81

Merged
merged 9 commits into from
Mar 8, 2018
Merged

ISSUE-79: Introduce smoke tests #81

merged 9 commits into from
Mar 8, 2018

Conversation

mrmlnc
Copy link
Owner

@mrmlnc mrmlnc commented Mar 8, 2018

What is the purpose of this pull request?

This is an introduction to smoke tests (#79) for the fast-glob package.

What changes did you make? (Give an overview)

  • Smoke tests runner based on the Mocha
  • Something like 350 smoke tests
  • Convert Windows-style paths to Unix-like in the transform action

@mrmlnc mrmlnc force-pushed the ISSUE-79_smoke_tests branch 7 times, most recently from e7e658e to 63b5a30 Compare March 8, 2018 16:38
@mrmlnc mrmlnc merged commit bcd2afe into master Mar 8, 2018
@mrmlnc mrmlnc deleted the ISSUE-79_smoke_tests branch March 8, 2018 20:17
@mrmlnc mrmlnc mentioned this pull request Mar 9, 2018
@@ -153,7 +154,7 @@ describe('Providers → Reader', () => {

const entry = tests.getFileEntry(false /** dot */);

const expected: string = path.join(process.cwd(), 'fixtures/file.txt');
Copy link

@jdalton jdalton Mar 16, 2018

Choose a reason for hiding this comment

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

Are results always converted to forward slashes now?

This makes matching slashes paths that are returned harder since Node will normalize slashes in Windows as backslashes. My tests have been failing for a while and I finally found this as the root cause.

As a workaround I've results.map(path.normalize).

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

2 participants