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

sort tests #1004

Merged
merged 5 commits into from Jan 7, 2018
Merged

sort tests #1004

merged 5 commits into from Jan 7, 2018

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Jan 7, 2018

Sorting tests alphabetically for more deterministic tests.

@joshbruce this was supposed to go with #1002

@joshbruce
Copy link
Member

@UziTech: Interesting. This is alphabetizing the console output, yeah? Just to make sure I'm understanding...then I should probably go to sleep.

@UziTech
Copy link
Member Author

UziTech commented Jan 7, 2018

And alphabetizing the way the tests are ran. So we can run tests in a specific order if we need to.

@joshbruce
Copy link
Member

Cool. Do we have a way to run a single test case? Just curious.

@UziTech
Copy link
Member Author

UziTech commented Jan 7, 2018

No we don't. Do you want me to set that up?

@joshbruce
Copy link
Member

@UziTech: If it's not difficult, it would probably be helpful - not that it takes that long for our tests to run, of course...we just have a lot and might be easier for someone adding a new feature to test their single piece of new functionality, you know?

@UziTech
Copy link
Member Author

UziTech commented Jan 7, 2018

I added running only certain tests by specifying a glob pattern

node test --glob gfm*

that will only run tests that start with 'gfm'

that glob also works with --bench to only bench certain tests

node test --bench --glob gfm*

@joshbruce
Copy link
Member

Thanks, brother!

@joshbruce joshbruce merged commit ef80689 into markedjs:master Jan 7, 2018
@joshbruce
Copy link
Member

#746

@UziTech UziTech deleted the sort-tests branch April 5, 2018 14:38
zhenalexfan pushed a commit to zhenalexfan/MarkdownHan that referenced this pull request Nov 8, 2021
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