Let's consider the state of JavaScript unit tests and testing tools.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, May 29, 2012
Looking for a better JavaScript unit test tool
Sunday, May 27, 2012
What C# mocking framework to use?
I want to start using mock objects on my next C# project.
Friday, May 25, 2012
What"s the proper way to test a class with private methods using JUnit?
How do I use JUnit to test a class that has internal private methods? It seems bad to change the access modifier for a method just to be able to run a test.
iPhone - strange error when testing on simulator
I was testing my app on the simulator when it crashed on clicking a button of a UIAlertView. I stopped debugging there, made some changes to the code and built the app again. Now when I run the application, I get this error in the console
Best practices for unit testing Android apps
I'd like to unit test my Android application but I found that test driven development in Android is far from trivial at the moment.
Friday, May 4, 2012
Dead-simple introduction to TDD (Test driven development)
Even though there are plenty introductions to TDD (even in PHP, my primary programming language now), I'm feeling a bit stuck about it.
Wednesday, May 2, 2012
Execute JavaScript from within a C# assembly
I'd like to execute JavaScript code from within a C# assembly and have the results of the JavaScript code returned to the calling C# code.
Wednesday, April 25, 2012
Using Mockito"s generic "any()” method
I have an interface with a method that expects an array of Foo:
How to run all tests belonging to a certain Category in JUnit 4
JUnit 4.8 contains a nice new feature called "Categories" that allows you to group certain kinds of tests together. This is very useful, e.g. to have separate test runs for slow and fast tests. I know the stuff mentioned in JUnit 4.8 release notes , but would like to know how I can actually run all the tests annotated with certain category.
Tuesday, April 17, 2012
Can I test status bar notifications using Android"s testing framework?
I have a class that sends a status bar notification in Android. I can't find a way to test whether the notification was sent or not, which makes it very hard to write any kind of useful unit test.
Monday, April 16, 2012
Eat, Sleep and Breathe Unit Testing/TDD/BDD
I do write unit tests while writing APIs and core functionalities. But I want to be the cool fanboy who eats, sleeps and breathes TDD and BDD. What's the best way to get started with TDD/BDD the right way? Any books, resources, frameworks, best practices?
Tuesday, April 3, 2012
Testing view helpers
I'm currently working on a Rails plugin used for generating iPhone specific HTML meta-tags. I'm trying to use ActionView::TestCase for unit tests but keep getting the same error. See file contents and error below. Any ideas or help would be much appreciated.
Wednesday, March 7, 2012
differences between 2 JUnit Assert classes
I've noticed that the JUnit framework contains 2 Assert classes (in different packages, obviously) and the methods on each appear to be very similar. Can anybody explain why this is?
Wednesday, February 29, 2012
Android : testing a service
we are actually developping an audio service (in the android sense of the term) and we have quite of lot of tests to cover many aspects of our APIs. But we are actually wondering for good things to do to test a service efficiently.