Questions tagged [tap]

The Test Anything Protocol (TAP) is a protocol to allow communication between unit tests and a test harness. Do not use for mobile, touch-enabled devices; use [touch] instead.

The Test Anything Protocol (TAP) is a protocol to allow communication between unit tests and a test harness. It allows individual tests (TAP producers) to communicate test results to the testing harness in a language-agnostic way.

On mobile phones, to tap means "to click", or to touch some User Interface elements.

References

547 questions
18
votes
3 answers

Pipe and Tap VS subscribe with ngxs

I am playing around with pipe and subscribe. If I am using pipe with tap, nothing will log in console. If I am using subscribe, it's working. So what I am doing wrong? import { Observable } from 'rxjs'; import { tap, take } from…
Paul
  • 2,430
  • 3
  • 15
  • 20
18
votes
4 answers

what ruby tap method does on a {}

I've read about what tap does in Ruby but I'm confused by the code block below, {}.tap do |h| # some hash processing end any help would be greatly appreciated.
Subash
  • 3,128
  • 6
  • 30
  • 44
18
votes
6 answers

c# .net why does Task.Run seem to handle Func differently than other code?

The new Task.Run static method that's part of .NET 4.5 doesn't seem to behave as one might expect. For example: Task t = Task.Run(()=>5); compiles fine, but Task t = Task.Run(MyIntReturningMethod); ... public Int32…
Michael Ray Lovett
  • 6,668
  • 7
  • 27
  • 36
17
votes
10 answers

What do you need from a test harness?

I'm one of the people involved in the Test Anything Protocol (TAP) IETF group (if interested, feel free to join the mailing list). Many programming languages are starting to adopt TAP as their primary testing protocol and they want more from it…
Ovid
  • 11,580
  • 9
  • 46
  • 76
16
votes
6 answers

Get coordinates on tapping map in android

I'm trying to make something like this: I have a mapactivity and when the user taps the map it shows the coordinates of that location. I already overrided the onclick method but it isn't even called. Any Idea? public class MapPoint extends…
Miguel Ribeiro
  • 8,057
  • 20
  • 51
  • 74
14
votes
4 answers

Android - Detect doubletap AND tripletap on view

I've been trying to build a tap detector that can detect both double and tripe tap. After my efforts failed I searched a long time on the net to find something ready to use but no luck! It's strange that libraries for something like this are so…
user2484359
14
votes
1 answer

When using (substack's) Tape module for testing, how do I run only one test in a file?

When using Tape how do I run a specific test and ignore all other tests?
nelsonic
  • 31,111
  • 21
  • 89
  • 120
14
votes
2 answers

Tap interfaces and /dev/net/tun device, using ip tuntap command

I'm using ip tuntap to create a tap interface, like this: $ sudo ip tuntap add mode tap tap0 Afterwards, I set the interface up and address it with the common IP commands. I can see then my interface up and addressed with a simple ifconfig. Now, I…
C. Paul
  • 241
  • 1
  • 3
  • 7
13
votes
2 answers

Can a shared supply run multiple tap blocks simultaneously?

Consider this code where a tap takes awhile to complete. All the blocks are running simultaneously (immediately outputting) then sleeping. Most don't finish because the program ends sooner then they do: my $supply = Supply.interval(0.2); my $tap =…
brian d foy
  • 129,424
  • 31
  • 207
  • 592
12
votes
3 answers

Double tap interval time standard

Is there any standard, say ISO standard, for interval (in miliseconds) between to taps ( clicked on touch devices) which assumed as double tap? I guess it should be long enough to allow slower users to double tap, but not so long that leads to…
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
11
votes
3 answers

ios How to make UITextView detect one tap?

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"touchesBegan"); //test UITouch *touch = [event allTouches] anyObject]; if ([touch tapCount] == 2) { NSLog (@"tapcount 2"); [self.textview…
wagashi
  • 894
  • 3
  • 15
  • 39
10
votes
2 answers

jQuery Mobile focus next input on keypress

I have a jquery mobile site with a html form consisting of 4 pin entry input boxes. I want the user to be able to enter a pin in each input field without having to press the iphone keyboards "next" button. I have tried the following and although it…
user738175
  • 161
  • 1
  • 2
  • 5
10
votes
2 answers

How do I run Perl's ``prove`` TAP harness in unbuffered mode?

As part of a test suite written in Python 3[.4-.6] on Linux, I have to run a number 3rd-party tests. The 3rd-party tests are bash scripts. They are designed to run with Perl's prove TAP harness. One bash script can contain up to a few thousands of…
s-m-e
  • 3,433
  • 2
  • 34
  • 71
10
votes
2 answers

DEPRECATION WARNING: Object#returning has been deprecated in favor of Object#tap

How to change the following method to use tap to stop the warnings like DEPRECATION WARNING: Object#returning has been deprecated in favor of Object#tap. (called from full_messages at…
millisami
  • 9,931
  • 15
  • 70
  • 112
10
votes
2 answers

Test::More is_deeply does not pretty-print array/hashrefs when comparing against strings

When Test::More compares like arrayrefs and hashrefs with each other, the corresponding diagnostic message is really informative and shows the first index where the structures differ, regardless of nesting depth. However, when it is comparing an…
Greg Nisbet
  • 6,710
  • 3
  • 25
  • 65
1
2
3
36 37