Questions tagged as 'testes'

1
answer

How to perform tests on private methods using Mockito

This weekend I read about Mockito and trial stunts, and the following idea came to me. Test private methods with this framework. I see that PowerMock performs this procedure, but has anyone tried to do this using Mockito...
asked by 18.08.2014 / 15:31
2
answers

Should I cover private methods in unit tests?

In my unit testing coverage, private functions are not tested. I do not know if this is the most correct route. Should I test my private methods? All? In .NET, the InternalsVisibleTo attribute % enables this, which left me with this dou...
asked by 01.11.2017 / 17:23
1
answer

Is it correct to implement unit testing on the model in the context of the Python language? [closed]

In some languages it is not suitable. I wonder if python is different. Thanks.     
asked by 18.05.2016 / 13:27
1
answer

Error when running Scalatra test on Intellij

I'm trying to run the following test from the scalatra within the < a class Test extends ScalatraFlatSpec with Matchers { addServlet(classOf[MainServlet], "/*") "Home Page" should "show hello" in { get("/"){ status shoul...
asked by 14.03.2015 / 19:15
1
answer

Good Testing Practices [closed]

What are good practices when it comes to software testing regarding file input and output? Is there any effective way to go in the market? Is it good to come with some prior knowledge, or is it better to take the test in the role of the user, no...
asked by 02.07.2014 / 14:50
1
answer

AssertionError: b 'Working with test classes in Django (TDD)

I'm starting my test studies with Django and am getting an error where it apparently should not, so much so that the description of traceback makes me pretty confused. I have a class that tests if the return of my view is compatible with its...
asked by 02.06.2017 / 05:02
1
answer

What is the generic name of the Xamarin search field for use in automated testing?

Can anyone help me with this? I can not use the same test code for iOS and Android. The search field name that was found is not the same, ie: Syntax in iOS - app.Query(x => x.Class("UISearchBarTextField")); Syntax in Android - app.WaitForEl...
asked by 17.02.2017 / 10:40
1
answer

How to know if it is a fragment that is on the screen, in interface test?

I would like to know, in automated interface tests, how to know if a fragment is on screen or not. If it's a fragment, for example, ratingfragment, I'll "perform" a "click". If it is another, I'll do another action. Thank you! Code belo...
asked by 29.09.2016 / 19:36
1
answer

"Timeout waiting for task." when trying to click webview button with espresso android

I have a button in an mdl-card of an html page that looks like this: <div class="mdl-layout-spacer"></div> <a id="btn15-minutos" href="#/" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored dialog-button">...
asked by 12.08.2016 / 19:27
1
answer

string comparison + linkedList

Good evening, I'm trying to compare a string with a linked list but I'm not having success, the linked list is being returned a value from another function, but I'll put the linked list output here. assertEquals("nome composto",frase.converter...
asked by 08.07.2016 / 02:00