iron_fixture_extractor:当对象工厂因为您的数据太复杂而无法工作并且创建手动固定装置麻烦而又脆弱时,

时间:2021-05-13 10:32:19
【文件属性】:
文件名称:iron_fixture_extractor:当对象工厂因为您的数据太复杂而无法工作并且创建手动固定装置麻烦而又脆弱时,
文件大小:54KB
文件格式:ZIP
更新时间:2021-05-13 10:32:19
gem language--ruby Ruby 铁夹具提取器 用于从登台和生产数据库中提取复杂数据以用于自动化测试。 最好的情况是: 您的数据对于工厂来说太复杂了 创建和维护手动装置既麻烦又脆弱 用例 从包含经过审核的数据的登台数据库中提取数据,该数据库已由开发团队,用户或业务分析师构建,将被加载并用作测试用例或演示中的“原型”数据结构。 拍摄触发了应用程序异常的生产数据快照,以便对其进行更仔细的检查,并将其合并到测试用例中。 这个怎么运作 向其提供ActiveRecord对象或ActiveRelation对象的数组,它将使您能够: 将数据提取到.yml固定装置 将其加载到数据库或内存中 从保存的ActiveRelation提取查询中重建.yml灯具。 用法 提取夹具组(通常在irb控制台中运行) Fe . extract ( 'Post.includes(:comments, :author).limit(1)' , :na
【文件预览】:
iron_fixture_extractor-master
----.hound.yml(50B)
----.ruby-version(6B)
----lib()
--------fe.rb(4KB)
--------iron_fixture_extractor.rb(195B)
--------fe()
----Gemfile(104B)
----.codeclimate.yml(128B)
----spec()
--------rebuild_spec.rb(716B)
--------dummy_environments()
--------execute_extract_code_spec.rb(1KB)
--------extract_works_with_multiple_extract_queries_in_one_command_spec.rb(600B)
--------load_db_works_with_serialized_attributes_spec.rb(620B)
--------load_db_spec.rb(2KB)
--------lib()
--------truncate_tables_for_spec.rb(1KB)
--------spec_helper.rb(555B)
--------extract_spec.rb(2KB)
--------get_hash_spec.rb(1KB)
--------load_db_map_option_spec.rb(1KB)
--------works_with_single_table_inheritance_spec.rb(588B)
--------fe_test_env_spec.rb(3KB)
--------README_FOR_DEVELOPERS.md(778B)
--------support()
----Rakefile(351B)
----.travis.yml(77B)
----LICENSE(1KB)
----test()
--------test_helper.rb(229B)
--------models()
--------migrations()
--------test_data_migrations()
--------basic_usage_test.ported.rb(4KB)
--------fe_test_env.ported.rb(2KB)
--------config()
--------sti_test.ported.rb(585B)
--------different_target_table_test.not_porting.rb(1KB)
--------get_hash_test.ported.rb(2KB)
--------multi_tree_usage_test.ported.rb(1KB)
--------factory_girl_test.not_porting_now.rb(3KB)
--------serialized_attribute_test.ported.rb(871B)
----README.md(9KB)
----.rubocop.yml(276B)
----.gitignore(161B)
----CHANGELOG.md(564B)
----iron_fixture_extractor.gemspec(1KB)

网友评论