Skip to content

Commit eac9adf

Browse files
Add tags to resolver specs (#589)
1 parent 45bd446 commit eac9adf

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
release ?= ## Compile in release mode
44
debug ?= ## Add symbolic debug info
55
static ?= ## Enable static linking
6+
skip_fossil ?= ## Skip fossil tests
7+
skip_git ?= ## Skip git tests
8+
skip_hg ?= ## Skip hg tests
69

710
CRYSTAL ?= crystal
811
SHARDS ?= shards
@@ -53,7 +56,7 @@ uninstall: phony
5356
test: test_unit test_integration
5457

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

5861
test_integration: bin/shards phony
5962
$(CRYSTAL) spec ./spec/integration/

spec/unit/fossil_resolver_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Shards
1212
end
1313
end
1414

15-
describe FossilResolver do
15+
describe FossilResolver, tags: %w[fossil] do
1616
before_each do
1717
create_fossil_repository "empty"
1818
create_fossil_commit "empty", "initial release"

spec/unit/git_resolver_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Shards
1111
end
1212
end
1313

14-
describe GitResolver do
14+
describe GitResolver, tags: %w[git] do
1515
before_each do
1616
create_git_repository "empty"
1717
create_git_commit "empty", "initial release"

spec/unit/hg_resolver_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Shards
1111
end
1212
end
1313

14-
describe HgResolver do
14+
describe HgResolver, tags: %w[hg] do
1515
before_each do
1616
create_hg_repository "empty"
1717
create_hg_commit "empty", "initial release"

0 commit comments

Comments
 (0)