Skip to content

Commit 2076153

Browse files
authored
Add Heroku CI smoke test (#238)
1 parent 0257c63 commit 2076153

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/spec/heroku_ci_spec.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# frozen_string_literal: true
2+
3+
require_relative 'spec_helper'
4+
5+
RSpec.describe 'Maven buildpack' do
6+
it 'runs tests on Heroku CI' do
7+
app = Hatchet::Runner.new('simple-http-service')
8+
9+
app.run_ci do |test_run|
10+
expect(clean_output(test_run.output)).to match(Regexp.new(<<~REGEX, Regexp::MULTILINE))
11+
\\[INFO\\] -------------------------------------------------------
12+
\\[INFO\\] T E S T S
13+
\\[INFO\\] -------------------------------------------------------
14+
\\[INFO\\] Running com.heroku.AppTest
15+
\\[INFO\\] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: [0-9\\.]+ s - in com.heroku.AppTest
16+
\\[INFO\\]
17+
\\[INFO\\] Results:
18+
\\[INFO\\]
19+
\\[INFO\\] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
20+
REGEX
21+
end
22+
end
23+
end

0 commit comments

Comments
 (0)