• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

okurz / openQA
73%
master: 65%

Build:
Build:
LAST BUILD BRANCH: feature/worker_spec_test
DEFAULT BRANCH: master
Repo Added 25 Nov 2015 10:51PM UTC
Files 296
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/test_database_hook
branch: feature/test_database_hook
CHANGE BRANCH
x
Reset
  • feature/test_database_hook
  • enhance/#674
  • enhance/catch_again_all_warnings_in_tests
  • enhance/comments_queries
  • enhance/logged_in_as
  • enhance/simplify_template_single_line_statements
  • enhance/travis_badge_master_branch
  • feature/accept_more_labeled_than_failed
  • feature/add_mouse_over_interactive
  • feature/add_test_scheduler
  • feature/add_wait_serial_test
  • feature/advanced_query
  • feature/allow_at_in_asset_name
  • feature/api_help
  • feature/better_not_exist_warn
  • feature/better_warning_on_duplicate_name
  • feature/bug_and_label
  • feature/bug_report_links
  • feature/bug_report_links_bsc
  • feature/build_tagging_poo#9544
  • feature/catch_all_test_warnings
  • feature/cleanup_before_poo#12084
  • feature/clone_job_error_msg_improve
  • feature/clone_job_no_qcow_download_with_parent
  • feature/comment_carry_over
  • feature/comment_replace_poo
  • feature/comments_and_such
  • feature/correct_OPENQA_CONFIG_description
  • feature/coverage
  • feature/dashed_error_border
  • feature/database_cfg_check
  • feature/delete_obsolete_13.2_ref
  • feature/delete_unused_route
  • feature/delete_unused_testresultdir
  • feature/do_not_auto_duplicate
  • feature/do_not_carry_over_labels
  • feature/doc_client_conf
  • feature/doc_clone_job_group_doc
  • feature/dominant_soft_fail_border
  • feature/enable_travis_coverage_check
  • feature/fetchneedles_optimize
  • feature/fetchneedles_with_productdir
  • feature/filter_index_page
  • feature/finish_important_builds_poo#11072
  • feature/finished_jobs_should_show_finished_time
  • feature/fix_apparmor_permission
  • feature/fix_hanging_worker_on_s390
  • feature/fix_travis_mojo_tmpdir_error
  • feature/gh_marker
  • feature/handle_annoying_not_prefixed_multi_line_log_debug
  • feature/harmonize_machine
  • feature/hmac_check
  • feature/improved_docs_on_setup_failure_poo#10314
  • feature/label
  • feature/label_and_previous_results
  • feature/latest
  • feature/latest_job
  • feature/latest_query
  • feature/limit_previous_builds_gui
  • feature/link_to_latest_in_scenario_name
  • feature/local_coverage_checks
  • feature/make_Makefile_adjustable
  • feature/more_builds_gui
  • feature/more_builds_gui_only_tagged
  • feature/more_help_buttons
  • feature/more_query_overwrite
  • feature/more_tests
  • feature/new_coveralls_icon
  • feature/new_needle_as_icon
  • feature/next
  • feature/no_warnings_catch_all
  • feature/overview_multiple_groups
  • feature/overview_name_limit
  • feature/poo_icon
  • feature/prevent_warning
  • feature/prevent_warning_in_upload_status
  • feature/previous_links_to_overview
  • feature/previous_t_started
  • feature/productdir
  • feature/productdir2
  • feature/refactor_list_qw
  • feature/show_comment_in_overview
  • feature/show_limited_with_entries
  • feature/show_scenario_name_in_details_poo#12084
  • feature/skip_download_in_clone
  • feature/switch_back
  • feature/test_for_todo
  • feature/test_pod
  • feature/test_src_links_running
  • feature/test_suite_description
  • feature/tooltip_index_help
  • feature/update_contribution_guide
  • feature/update_tw_doc
  • feature/updated_dashboard_staging_link
  • feature/url_short_tests
  • feature/use_proper_list_for_needle_info
  • feature/worker_spec_test
  • fix/api_job_templates
  • fix/catch_too_many_jobs
  • fix/coverage
  • fix/error_in_dashboard_poo#12028
  • fix/error_in_dashboard_poo#12028_with_test
  • fix/experimental_key_on_scalar
  • fix/latest_edit_link
  • fix/latest_with_machine_tag
  • fix/needledir_symlinked
  • fix/nobody_comments
  • fix/non_creatable_array
  • fix/poo#10960_performance_regression
  • fix/poo#10966_performance_overview
  • fix/prevent_warnings_on_invalids
  • fix/readme
  • fix/reporting_double_bugzilla_product_poo14830
  • fix/reporting_headers_poo14836
  • fix/softfail
  • fix/switch_back
  • fix/t_needle_edit
  • fix/typo
  • fix/undef_realpath
  • fix/warnings
  • patch-1

pending completion
248

push

travis-ci

okurz
Add test database customization hook

For now we used two ways to setup a test database, either an empty one with
custom additions of entries tailored for a test or based on our fixtures which
have a good common set. Tests based on phantomjs so far always relied on the
database fixtures. The problem with that is by adding more entries to the
fixtures many tests need to be adapted, conflicting corner cases can not be
represented very well, the fixtures maintenance effort increases and the tests
become slower.

This commit provides a way to pass a custom hook for database creation
allowing a customization of database entries as necessary for the specific
tests, be it based on a clean database where one just wants to add what is
necessary or creating a database based on the fixtures and tailoring it for
the test in question.

Documentation for the feature is in t/ui/PhantomTest.pm and an example is in
t/ui/01-list.t.

4849 of 6657 relevant lines covered (72.84%)

116.7 hits per line

Relevant lines Covered
Build:
Build:
6657 RELEVANT LINES 4849 COVERED LINES
116.7 HITS PER LINE
Source Files on feature/test_database_hook
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
248 feature/test_database_hook Add test database customization hook For now we used two ways to setup a test database, either an empty one with custom additions of entries tailored for a test or based on our fixtures which have a good common set. Tests based on phantomjs so fa... push 22 Nov 2016 11:20AM UTC okurz travis-ci pending completion  
247 feature/test_database_hook Add test database customization hook push 22 Nov 2016 11:01AM UTC okurz travis-ci pending completion  
See All Builds (221)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc