aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-02-07 10:10:27 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-02-11 09:58:08 +0900
commitcd34f00627c35bec1cde9b154c7aeb453ea0789e (patch)
tree7e50cb57d45ca0cc1189aded1c8d6019d31ae333 /railties/Rakefile
parent9cc463ed7b7be098602b72a98f72220ea6466ba2 (diff)
downloadrails-cd34f00627c35bec1cde9b154c7aeb453ea0789e.tar.gz
rails-cd34f00627c35bec1cde9b154c7aeb453ea0789e.tar.bz2
rails-cd34f00627c35bec1cde9b154c7aeb453ea0789e.zip
Install JavaScript packages before run test
Some tests are running yarn install during the test. The directory used for isolation test is not subject to yarn workspace, and it occurs because the required package is not installed. In order to avoid this, I fixed all necessary packages to be installed before run test and use symlink to `node_modules`. This is a bit complicated, as `yarn install` needs to be run in a specific directory before running the test. However, running `yarn install` every time run the test is expensive when testing locally and should be avoided.
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 1c4725e2d6..4ae546b202 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -38,7 +38,7 @@ namespace :test do
test_patterns = dirs.map { |dir| "test/#{dir}/*_test.rb" }
test_files = Dir[*test_patterns].select do |file|
- !file.start_with?("test/fixtures/")
+ !file.start_with?("test/fixtures/") && !file.start_with?("test/isolation/assets/")
end.sort
if ENV["BUILDKITE_PARALLEL_JOB_COUNT"]