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

Run tests in parallel #9

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

qba73
Copy link
Contributor

@qba73 qba73 commented Jul 31, 2022

Hi @tufanbarisyildirim, this PR proposes changes to test files to allow parallel test execution.

Testing locally:

➜  gonginx git:(paralleltests) ✗ go test -race ./... -count=1
ok  	github.com/tufanbarisyildirim/gonginx	0.217s
?   	github.com/tufanbarisyildirim/gonginx/examples/adding-server	[no test files]
?   	github.com/tufanbarisyildirim/gonginx/examples/formatting	[no test files]
?   	github.com/tufanbarisyildirim/gonginx/examples/update-directive	[no test files]
ok  	github.com/tufanbarisyildirim/gonginx/parser	0.335s
ok  	github.com/tufanbarisyildirim/gonginx/parser/token	0.160s

Testing locally using make target:

➜  gonginx git:(paralleltests) make test
go test -race -cover /Users/jakub/projects/gonginx/parser/token
ok  	github.com/tufanbarisyildirim/gonginx/parser/token	(cached)	coverage: 100.0% of statements
go test -race -cover /Users/jakub/projects/gonginx/parser
ok  	github.com/tufanbarisyildirim/gonginx/parser	(cached)	coverage: 95.3% of statements
go test -race -cover /Users/jakub/projects/gonginx
ok  	github.com/tufanbarisyildirim/gonginx	(cached)	coverage: 65.7% of statements

@tufanbarisyildirim
Copy link
Owner

cool, merging, thanks!

@tufanbarisyildirim tufanbarisyildirim merged commit 65c1a2c into tufanbarisyildirim:master Jul 31, 2022
@qba73 qba73 deleted the paralleltests branch July 31, 2022 14:37
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