Skip to content

Commit

Permalink
Add bin/smoke
Browse files Browse the repository at this point in the history
Add basic smoke test
  • Loading branch information
fumimowdan committed Nov 30, 2023
1 parent abfa918 commit ab2d67c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Copy env file
run: cp .env.example .env
- name: Run tests
run: bin/rspec
run: bin/rspec --tag ~smoke_test

Lint:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions bin/smoke
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh
#
# Application smoke test script
#

set -e

bundle exec rspec spec/features/smoke_spec.rb --tag smoke_test
8 changes: 8 additions & 0 deletions spec/features/smoke_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require "rails_helper"

RSpec.describe "Smoke test", smoke_test: true do
it "runs" do
visit(ENV.fetch("SMOKE_URL"))
expect(page).to have_text("Get an international relocation payment")
end
end

0 comments on commit ab2d67c

Please sign in to comment.