-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab0611c
commit fb92dcb
Showing
13 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
/blob-report/ | ||
/.github/ | ||
/playwright/.cache/ | ||
/Rakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
require 'open3' | ||
|
||
task default: :test | ||
|
||
desc 'Install dependencies & setup the dummy application' | ||
task :install do | ||
sh 'yarn install --check-files' | ||
Rake::Task['dummy:setup'].invoke | ||
end | ||
|
||
desc 'Run Playwright tests' | ||
task test: 'dummy:setup' do | ||
sh 'npx playwright test --reporter=dot' | ||
end | ||
|
||
desc 'Open the Playwright test runner app' | ||
task test_ui: 'dummy:setup' do | ||
sh 'npx playwright test --ui' | ||
end | ||
|
||
namespace :dummy do | ||
desc 'Setup the dummy application' | ||
task :setup do | ||
Dir.chdir('test/dummy') do | ||
sh 'bin/setup' | ||
end | ||
end | ||
|
||
desc 'Run the dummy application on port 3000' | ||
task run: :setup do | ||
Dir.chdir('test/dummy') do | ||
Open3.popen2e({'PORT' => '3000'}, 'foreman start -f Procfile.dev') do |_, output| | ||
output.each_line { puts _1 } | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters