Skip to content

Commit

Permalink
focus some
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed Feb 14, 2024
1 parent 0d569ee commit 64a72ad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/spec/blackfire_shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'ansi/core'

shared_examples "A PHP application using ext-blackfire and" do |agent|
context "#{agent}" do
context "#{agent}", :focused => true do
["explicitly", "without BLACKFIRE_SERVER_TOKEN", "with default BLACKFIRE_LOG_LEVEL", "implicitly"].each do |mode|
next if mode == "without BLACKFIRE_SERVER_TOKEN" and agent == "blackfireio/integration-heroku" # blackfire buildpack would error on invalid credentials
context "#{mode}" do
Expand Down
2 changes: 1 addition & 1 deletion test/spec/composer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative "spec_helper"
require "securerandom"

describe "A PHP application" do
describe "A PHP application", :focused => true do
context "that has its stack changed", :stack => "heroku-22" do
it "re-uses cached dependencies from the prior stack build" do
new_app_with_stack_and_platrepo("php-getting-started").deploy do |app|
Expand Down
2 changes: 1 addition & 1 deletion test/spec/newrelic_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative "spec_helper"
require "securerandom"

describe "A PHP application using New Relic" do
describe "A PHP application using New Relic", :focused => true do
["explicitly", "without NEW_RELIC_LICENSE_KEY", "with default NEW_RELIC_LOG_LEVEL", "implicitly"].each do |mode|
context "#{mode}" do
before(:all) do
Expand Down
2 changes: 1 addition & 1 deletion test/spec/php_concurrency_shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

shared_examples "A PHP application for testing WEB_CONCURRENCY behavior" do |series, server|

context "running PHP #{series} and the #{server} web server" do
context "running PHP #{series} and the #{server} web server", :focused => true do
before(:all) do
@app = new_app_with_stack_and_platrepo('test/fixtures/bootopts',
before_deploy: -> { system("composer require --quiet --ignore-platform-reqs php '#{series}.*'") or raise "Failed to require PHP version" },
Expand Down
2 changes: 1 addition & 1 deletion test/spec/platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
manifest_fixtures_subdir = "test/fixtures/platform/builder/manifest"
mkrepo_fixtures_subdir = "test/fixtures/platform/builder/mkrepo"

describe "The PHP Platform Installer" do
describe "The PHP Platform Installer", :focused => true do
describe "composer.json Generator Script" do
Dir.each_child(generator_fixtures_subdir) do |testcase|
it "produces the expected platform composer.json for case #{testcase}" do
Expand Down
4 changes: 2 additions & 2 deletions test/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def product_hash(hash)
end

RSpec.configure do |config|
config.filter_run focused: true unless ENV['IS_RUNNING_ON_CI']
config.run_all_when_everything_filtered = true
config.filter_run focused: true # unless ENV['IS_RUNNING_ON_CI']
config.run_all_when_everything_filtered = false
config.alias_example_to :fit, focused: true
config.filter_run_excluding :requires_php_on_stack => lambda { |series| !php_on_stack?(series) }
config.filter_run_excluding :stack => lambda { |stack| !stack.include?(ENV['STACK']) }
Expand Down

0 comments on commit 64a72ad

Please sign in to comment.