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

Refactor the test suite #606

Merged
merged 4 commits into from
Jun 30, 2017
Merged

Refactor the test suite #606

merged 4 commits into from
Jun 30, 2017

Conversation

j-f1
Copy link
Contributor

@j-f1 j-f1 commented Jun 29, 2017

This adds a test helper that creates a testing function, which is usually called thePlugin, which streamlines testing transforms. I’ve also gone through and edited some of the test names for clarity.

j-f1 added 3 commits June 29, 2017 13:03
This simplifies tests that check that a certain code
snippet gets transformed to another snippet.
@j-f1 j-f1 force-pushed the refactor-tests branch from 0156861 to 97a53cd Compare June 29, 2017 17:22
}
});
};
thePlugin.skip = name => it.skip(name);
Copy link
Member

Choose a reason for hiding this comment

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

you would also need to support only if we would like to run a single test during dev..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@vigneshshanmugam
Copy link
Member

The cleanup looks good overall.. Thanks a lot 👍

@boopathi boopathi added the Tag: Internal Pull Request changing project internals - code that is NOT published label Jun 30, 2017
@boopathi
Copy link
Member

This looks great!

I thought of moving it to fixtures based testing - each test case in 2 files - source.js and expected.js. But this is fine for now.

@boopathi boopathi merged commit fd79492 into babel:master Jun 30, 2017
@j-f1 j-f1 deleted the refactor-tests branch June 30, 2017 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tag: Internal Pull Request changing project internals - code that is NOT published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants