Questions tagged as 'pruebas-unitarias'

1
answer

junit Test in Spring boot Duplicate error how to fix it?

Best regards to the community I am doing unit tests in Spring boot in mysql if someone in the community can help me in solving this case thanks. I leave the code: @RunWith(SpringRunner.class) @DataJpaTest @AutoConfigureTestDatabase(replace=...
asked by 02.12.2018 / 01:05
1
answer

Perform a unit test in NodeJs. With mocha and chai;

I am performing a unit test on a function, and what I want is to simulate the communication with the DTA (that does not communicate with the database); For example: This is the function to which I want to perform the test ... public add(a, b):...
asked by 17.08.2018 / 16:51
1
answer

Error when implementing unit tests in React Native with Reactnavigation

I'm having the following problem:    Invariant Violation: Native module can not be null. at invariant (node_modules/fbjs/lib/invariant.js:42:15) at new NativeEventEmitter (node_modules/react-native/Libraries/EventEmitter/NativeEventEmit...
asked by 17.07.2018 / 21:38
0
answers

sinon stub as a module

Hi, I'm trying to do a test in a class written in ES6. The problem arises when I want to do a stub on a function of a module that I import. the code I have is the following: module.js function soapModule(){ this.callSoap = (id)...
asked by 14.05.2018 / 18:03
0
answers

Run tests that consult an existing database with Laravel 5.4 - Dusk

I need to run automated tests on the search engine with Laravel 5.4 using Dusk . The database was not created from the framework migration system, so I have problems executing the tests that make queries to the database.    Illum...
asked by 26.09.2017 / 18:45
0
answers

Is it possible to use Laravel Dusk with Behat in a Laravel 5 project?

I am using laravel 5.5 and would like to know if I can integrate Behat into it and use the Dusk functionalities in the FeatureContext file generated by Behat, where the characteristics of my tests are created as functions of the class. In this c...
asked by 15.09.2017 / 16:43
1
answer

Why does jmimemagic throw exception with sql files?

Hi, I work with Play Framework 1.4 and Java, I have a Test class with UnitTest that tests a class that validates files with jmimemagic, but when validating files with an extension sql throws the exception MagicMatchNotFoundException Why does...
asked by 14.07.2017 / 18:09
0
answers

Problem in the header (HTTP Header Manager) Jmeter with ":"

I am currently trying to do load tests with Jmeter under https . In the part of "HTTP Header Manager" or "HTTP Header Manager", I enter a variable ${foo} and its value "foo" contains ":" in one of its parts. I kn...
asked by 22.06.2017 / 11:21