Skip to content

Commit 4a6d256

Browse files
committed
separate font highlighting and indentation test suite runners
1 parent 09f4eba commit 4a6d256

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

Rakefile

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ task 'info' do
3030
system "#{CASK} exec #{EMACS} --version | head -1"
3131
end
3232

33-
desc "Run the test suite"
33+
desc "Run test suite"
3434
task "test" do
3535
process_info "Install package dependencies"
3636
say ""
@@ -45,6 +45,38 @@ task "test" do
4545
exit_when_failed!("Test suite failed!\n")
4646
end
4747

48+
namespace :testing do
49+
desc "Run indentation test suite"
50+
task "indentation" do
51+
process_info "Install package dependencies"
52+
say ""
53+
say "#{indent(3)}Command: ", :yellow, false
54+
sh "cask install"
55+
say ""
56+
57+
process_info "Run test suite"
58+
say ""
59+
system "#{CASK} exec ert-runner -t indentation"
60+
61+
exit_when_failed!("Test suite failed!\n")
62+
end
63+
64+
desc "Run font highlighting test suite"
65+
task "fontification" do
66+
process_info "Install package dependencies"
67+
say ""
68+
say "#{indent(3)}Command: ", :yellow, false
69+
sh "cask install"
70+
say ""
71+
72+
process_info "Run test suite"
73+
say ""
74+
system "#{CASK} exec ert-runner -t fontification,syntax-table"
75+
76+
exit_when_failed!("Test suite failed!\n")
77+
end
78+
end
79+
4880
def git_changes(version, version_tag)
4981
run "git commit -a -m \"prepare #{version}\""
5082
run "git tag -a -m \"Version #{version}\" #{version_tag}"

0 commit comments

Comments
 (0)