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 tags to resolver specs #589

Merged
merged 1 commit into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
release ?= ## Compile in release mode
debug ?= ## Add symbolic debug info
static ?= ## Enable static linking
skip_fossil ?= ## Skip fossil tests
skip_git ?= ## Skip git tests
skip_hg ?= ## Skip hg tests

CRYSTAL ?= crystal
SHARDS ?= shards
Expand Down Expand Up @@ -53,7 +56,7 @@ uninstall: phony
test: test_unit test_integration

test_unit: phony lib
$(CRYSTAL) spec ./spec/unit/
$(CRYSTAL) spec ./spec/unit/ $(if $(skip_fossil),--tag ~fossil) $(if $(skip_git),--tag ~git) $(if $(skip_hg),--tag ~hg)

test_integration: bin/shards phony
$(CRYSTAL) spec ./spec/integration/
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/fossil_resolver_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Shards
end
end

describe FossilResolver do
describe FossilResolver, tags: %w[fossil] do
before_each do
create_fossil_repository "empty"
create_fossil_commit "empty", "initial release"
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/git_resolver_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Shards
end
end

describe GitResolver do
describe GitResolver, tags: %w[git] do
before_each do
create_git_repository "empty"
create_git_commit "empty", "initial release"
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/hg_resolver_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Shards
end
end

describe HgResolver do
describe HgResolver, tags: %w[hg] do
before_each do
create_hg_repository "empty"
create_hg_commit "empty", "initial release"
Expand Down