This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface CalabashBackdoor : NSObject | |
+(NSString *) backdoorMethodName:(NSString *)string; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Swipes on the screen with given direction | |
# @param [String] query_string (Optional) The custom query for the object to swipe on | |
# @param [Symbol] direction - direction to swipe :left, :right, :up, :down | |
def self.swipe_screen(direction, query_string='view') | |
view = query(query_string).first | |
centerY = view['rect']['center_y'] | |
centerX = view['rect']['center_x'] | |
height = view['rect']['height'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#From https://github.com/jmoody/briar/blob/develop/lib/briar/alerts_and_sheets/alert_view.rb | |
#From https://github.com/jmoody/briar/blob/405aacf4e39cecaeca3da31c2503c62d4ef8bc8e/lib/briar/briar_core.rb | |
# Lets us interact with alerts/dialogs. Even native ones. | |
class Alert | |
extend Calabash::Cucumber::Operations | |
# Check to see if the alert is open | |
# @param [String] alert_id (Optional) Alert title/text to use in verification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
import re | |
import sys | |
import xml.etree.ElementTree as ET | |
from optparse import OptionParser | |
### This file came from the https://github.com/flow123d/flow123d repo they were nice enough to spend time to write this. | |
### It is copied here for other people to use on its own. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AfterConfiguration do |config| | |
CodeCoverage.clean_up_code_coverage_archive_folder | |
CodeCoverage.generate_lcov_baseline_info_file | |
end | |
Before do |scenario| | |
$calabash_launcher = Calabash::Cucumber::Launcher.launcher | |
CodeCoverage.clean_up_last_run_files | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Forward-declare LLVM (profdata) methods for usage below | |
// For documentation, see: http://clang.llvm.org/docs/SourceBasedCodeCoverage.html | |
int __llvm_profile_write_file(void); | |
void __llvm_profile_initialize_file(void); | |
void __llvm_profile_set_filename(const char *Name); | |
/** | |
* Generate profraw (profdata) code coverage | |
*/ | |
- (BOOL)beginCodeCoverage:(NSString*)fullFilePath |