Skip to content

Commit

Permalink
Add tags to resolver specs (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Jun 30, 2023
1 parent 45bd446 commit eac9adf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
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

0 comments on commit eac9adf

Please sign in to comment.