first commit

This commit is contained in:
2025-04-16 23:15:08 +09:00
commit 74f134c71a
153 changed files with 11803 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
if ENV["CAPYBARA_SERVER_PORT"]
served_by host: "rails-app", port: ENV["CAPYBARA_SERVER_PORT"]
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ], options: {
browser: :remote,
url: "http://#{ENV["SELENIUM_HOST"]}:4444"
}
else
driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
end
end

0
test/controllers/.keep Normal file
View File

View File

@@ -0,0 +1,7 @@
require "test_helper"
class ModbusControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

0
test/fixtures/files/.keep vendored Normal file
View File

9
test/fixtures/schedules.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
hour: 1
temperature: 1.5
two:
hour: 1
temperature: 1.5

0
test/helpers/.keep Normal file
View File

0
test/integration/.keep Normal file
View File

0
test/mailers/.keep Normal file
View File

0
test/models/.keep Normal file
View File

View File

@@ -0,0 +1,7 @@
require "test_helper"
class ScheduleTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

0
test/system/.keep Normal file
View File

15
test/test_helper.rb Normal file
View File

@@ -0,0 +1,15 @@
ENV["RAILS_ENV"] ||= "test"
require_relative "../config/environment"
require "rails/test_help"
module ActiveSupport
class TestCase
# Run tests in parallel with specified workers
parallelize(workers: :number_of_processors)
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all tests here...
end
end