Module: UICov
- Defined in:
- lib/uicov/main.rb,
lib/uicov.rb,
lib/uicov/opts.rb,
lib/uicov/consts.rb,
lib/uicov/screen_info.rb,
lib/uicov/ui_coverage.rb,
lib/uicov/coverage/data.rb,
lib/uicov/coverage_data.rb,
lib/uicov/coverage_info.rb,
lib/uicov/commands/merge.rb,
lib/uicov/coverage/types.rb,
lib/uicov/commands/gather.rb,
lib/uicov/commands/gentpl.rb,
lib/uicov/commands/report.rb,
lib/uicov/transition_info.rb,
lib/uicov/commands/command.rb,
lib/uicov/coverage/check_data.rb,
lib/uicov/coverage/action_data.rb,
lib/uicov/coverage/member_data.rb,
lib/uicov/coverage/screen_data.rb,
lib/uicov/coverage/element_data.rb,
lib/uicov/coverage/transition_data.rb
Overview
Author: Alexey Lyanguzov ([email protected])
Defined Under Namespace
Classes: ActionData, CheckData, Command, CovData, CoverageData, CoverageDataType, CoverageInfo, ElementData, Gather, Gentpl, LogPatterns, Main, MemberData, Merge, ModelPatterns, Opts, Report, ScreenData, TransitionData, TransitionInfo, UICoverage
Constant Summary collapse
- GEM_HOME =
File.("#{File.dirname(__FILE__)}/..")
- GEM_TESTS_DIR =
"#{GEM_HOME}/test"- GEM_TESTS_DATA_DIR =
"#{GEM_TESTS_DIR}/data"- GEM_LIB_DIR =
"#{GEM_HOME}/lib/uicov"- Log =
Logger.new STDOUT
- SKIN_PARAMS =
%q^ skinparam state { FontSize 10 AttributeFontSize 10 BackgroundColor #FCFCFC BorderColor #C0C0C0 FontColor #808080 ArrowColor #C0C0C0 AttributeFontColor #808080 ArrowFontColor #808080 BackgroundColor<<Covered>> #CCFFCC BorderColor<<Covered>> #008800 FontColor<<Covered>> #004400 AttributeFontColor<<Covered>> #004400 BackgroundColor<<Missed>> #FFEE88 BorderColor<<Missed>> #FF8800 FontColor<<Missed>> #886622 AttributeFontColor<<Missed>> #886622 } ^- LEGEND =
%q^ state Legend { state "Uncovered Screen from Model" as UncoveredScreen UncoveredScreen -> CoveredScreen : uncovered_transition {0, 0} state "Covered screen from Model" as CoveredScreen<<Covered>> CoveredScreen -[#orange]-> MissedScreen : <font color=orange><b>UNKNOWN</b></font> {1, 1} - covered transition missed in Model CoveredScreen : <b>covered_action_with_3_calls_from_2_tests</b> {3, 2} CoveredScreen : <font color=orange><b>covered_action_missed_in_model</b></font> {1, 1} state "Screen missed in Model" as MissedScreen<<Missed>> CoveredScreen -[#green]-> CoveredScreen : <font color=green><b>covered_transition_to_self</b></font> {1, 1} MissedScreen : uncovered_action {0, 0} MissedScreen : <b>covered_action_missed_in_model</b> {1, 1} state "Another Covered Screen from Model" as AnotherCoveredScreen<<Covered>> MissedScreen -left[#blue]-> AnotherCoveredScreen : <font color=blue><b>DEEP_LINK</b></font> {1, 1} AnotherCoveredScreen -[#green]-> CoveredScreen : <font color=green><b>covered_transition</b></font> {1, 1} CoveredScreen --> AnotherCoveredScreen : <font color=red>NOT_SET</font> {0, 0} - missed transition name in Model AnotherCoveredScreen : uncovered_action {0 ,0} } ^- ScreenInfo =
Class.new(CoverageInfo)
Class Method Summary collapse
Class Method Details
.gather_coverage(opts = {}) ⇒ Object
14 15 16 |
# File 'lib/uicov.rb', line 14 def self.gather_coverage(opts={}) UICoverage.new.gather_coverage(opts) end |
.patterns_override(target, &blk) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/uicov/main.rb', line 6 def self.patterns_override(target, &blk) case target when :log LogPatterns.class_exec &blk else Log.fatal "Unknown target '#{target}' in pattern file '#{caller[0]}'" end end |