Questions tagged [Development through testing] (126)

12
answers

Is it possible testing a site in unattended mode?

Is it possible testing a site in automatic mode on the algorithm: At a certain point you run the script, probably from a different server, which should do the following: - randomly go to different pages of the website, put in your shopping basket, fill in the checkout fields to send the order - complete and submit various f...
0
answer

“ReferenceError: document is not defined”?

Good day, started to deal with jsdom. Wrote a very simple function for clarity. I made a test using mocha, chai and JSDOM. All the document in my module commented out due to the fact that if I recommendyou, you will see the error "ReferenceError: document is not defined". In theory I understand what she means. This error m...
sid_Schaef asked April 4th 20 at 01:10
2
answers

Kubernetes how to start testing?

Good day! Imagine that there is a simple NodeJS app with MongoDB database, all works in containers and for example in the local cluster Minikube (classic tutorial when you search for "nodejs mongo kubernetes"). We also remember that we have a pyramid of tests: UI Integration Unit Questions: 1. [Unit] do I need to run the Un...
1
answer

How to test with Mocha changes in HTML?

Good afternoon, prompt please. I understand how to test with Mocha a javascript function which something returns, but how can I test functions that do some changes in the DOM tree. I can assume, based on the read information, you need to use JSDOM. I would be grateful for any more or less like a practical example or any inf...
Katelin86 asked April 4th 20 at 00:35
0
answer

Maybe someone knows a good course on TDD for the frontend?

Recently discovered A comprehensive step-by-step video course on designing robust Laravel applications with TDD test driven laravel this mega course closed almost all my questions on TDD. but only for the backend. Maybe someone knows of such a course on TDD for the frontend? Something like "A comprehensive step-by-step c...
1
answer

Mocha, chai. How to run tests from the prompt?

Learn JavaScript and one of the tests to the jobs writing, get used to it. Often jobs need to take the data from the user, now the question is how to emulate the h*mouths prompt? now I have a file with the tests valyaetsya funkcijalet defPrompt = prompt; prompt = function(returnValue) { return returnValue; } is this approa...
Roy_Daugher asked April 2nd 20 at 17:29
1
answer

How to make testing clicks to React?

Reakt is an application which roughly speaking consists of a main statefull component and its nested components stateless. Nested components have processing clicks, which causes transmitted through props the methods of main component. How can I test to click that after clicking render a new result in a certain field? Just t...
Morris.Stracke asked April 1st 20 at 18:00
1
answer

How to approach the testing function of the Converter?

There is a function that takes as input two data structures, performs the attachment data of the second structure to the first and converts the final result to a different format. All actions are performed by a set of smaller functions, each responsible for their part. If I have to write a test that verifies the correctness...
Kailyn_Ziema asked March 31st 20 at 21:00
0
answer

What is the Tul for automated testing of a demon to choose?

have a legacy project, or he me, it's unclear... c++, linux, cmake, jenkins unit tests at the very poor live. but there is a need for more. namely, you must be able to run the final app/daemon in different positions and test it in different cases. for example, the case begs for automation (one of hundreds )): 1. start the s...
kraig.Gislason asked March 29th 20 at 23:21
1
answer

How to choose the e2e & unit testing framework for the application to React?

It is planned to develop the app on React.JS from scratch. Advise, please, articles or any other information that will help you to choose the right framework or approach for configuration and implementation of end-to-end & unit tests.