Questions tagged [expresso]

Ultrapico .NET regex editor

Expresso is an Ultrapico .NET regex development and testing tool distributed free of charge (a free registration is required after the first month of usage). It features a powerful regex editor suitable as a self-study tool for beginners and as a full-featured development environment for the experienced programmers with an profound knowledge of regular expressions. Besides, there are such features as .NET code generation, benchmarking, and a local regex library.

40 questions
9
votes
1 answer

Automate UI Tests in a Kotlin Compose Project - equivalent version of Expresso Recorder

is there a framework I can use to automate UI regression testing in a Kotlin Compose project? Clicking on Android Studio Run -> Record Expresso Test gives a warning that Espresso Testing Framework does not support Compose projects.
7
votes
2 answers

Testing MongooseJs Validations

Does anyone know how to test Mongoose Validations? Example, I have the following Schema (as an example): var UserAccount = new Schema({ user_name : { type: String, required: true, lowercase: true, trim: true, index: { unique: true },…
Donn Felker
  • 9,553
  • 7
  • 48
  • 66
5
votes
1 answer

How do I get mocha to run "exports"-style tests on Windows?

I have NodeJS and Mocha installed and working on Windows 7 x64 - so far, so good - but I can't get Mocha to recognise any tests defined using the exports interface (as described at http://visionmedia.github.com/mocha/) If I create test/bdd.js…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
5
votes
0 answers

Android UI testing with Expresso: No activities in stage RESUMED

I am currently struggling implementing a functional test on an Android ListActivity that implements a LoaderManager.LoaderCallbacks. This Activity has a simple layout that has an EditText for the user to enter some string, and a ListView that is…
Tiago Mota
  • 51
  • 1
  • 3
5
votes
3 answers

How to make balancing group capturing?

Let's say I have this text input. tes{}tR{R{abc}aD{mnoR{xyz}}} I want to extract the ff output: R{abc} R{xyz} D{mnoR{xyz}} R{R{abc}aD{mnoR{xyz}}} Currently, I can only extract what's inside the {}groups using balanced group approach as found…
4
votes
2 answers

Can't create handler inside thread that has not called Looper.prepare(), while implementing IdlingResource

I’m attempting to write Espresso unit test that depends on a component that makes TCP/IP network connection to an external app in order to pass successfully. The test failed to due the fact that the TCP/IP network took longer than the allowed by…
cyber101
  • 2,822
  • 14
  • 50
  • 93
4
votes
1 answer

Expresso not installing on Windows 7

Having a problem install Expresso on my machine similar to this windows 7 x64 node.js version: 0.8.0 npm version: 1.1.32 > npm install expresso npm http GET https://registry.npmjs.org/expresso npm http 304 https://registry.npmjs.org/expresso >…
user1460015
  • 1,973
  • 3
  • 27
  • 37
3
votes
1 answer

How do I get the code coverage output to display using expresso?

I'm working on getting Expresso set up and some tests running. I followed along with a tutorial on node tuts and have 4 tests running, and passing. Now I'm trying to get a code coverage output to show up when I run the tests, like the docs show.…
hookedonwinter
  • 12,436
  • 19
  • 61
  • 74
3
votes
2 answers

How to create a data driven test in Node.js

In Node.js unit tests, what is the way to create data driven unit tests? For Example, I've a common function / method, which I want to re-use in multiple unit tests with different sets of data. I tried looking into nodeunit, vows, whiskey, qunit,…
user1460887
  • 245
  • 1
  • 2
  • 10
3
votes
3 answers

What's the regex for restricted number of numeric characters?

Having trouble figuring out a regex issue. We are looking for 2 numbers then hyphen or space then 6 numbers. Must be only 6 numbers, so either an alpha character or some punctuation or space must follow the 6 numbers or the 6 numbers must be at the…
hawbsl
  • 15,313
  • 25
  • 73
  • 114
2
votes
1 answer

Mock the method with in instrumented unit test

I am running the Expresso test and I have the requirement to mock the method with context as the parameter. This code is in onStart() of the fragment launch. Since i am running the testcase in emulator, I have to mock the method isBLESupported to…
2
votes
1 answer

Android testing preferences fragment by Expresso

I have got a problem with testing my code by Expresso. I wrote this code: public class SettingsActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
user6532769
2
votes
0 answers

Expresso does not find test cases: 'Empty test suite' on Android Studio

I started using JakeWharton's DoubleExpresso library and I was able to set it up as per instructions but unfortunately it's not able to find test cases. My gradle config looks like this: androidTestCompile('com.jakewharton.espresso:espresso:1.1-r2')…
Sunny
  • 286
  • 1
  • 4
  • 14
1
vote
0 answers

How to conduct User Interface Testing and Instrumented Unit Testing on an Android Service with visible layout - specifically a floating widget?

Basically the question. I'm currently trying to test a floating widget service that looks like the Messenger Bubble head. I have read the documentation on Expresso UI testing, however, the case I'm dealing with is a bit complicated. Considering that…
1
vote
0 answers

No views in hierarchy found matching: Child at position 0 in parent Child at position 0 in parent view.getId

I created an instrumental test with android studio, using Express Record Test. Flow: -> Starts in the Activity_splash_screen class. -> Then the LoginActivity.java screen goes to the screen. -> After the login screen goes to another actitivity…
1
2 3