How to kill a unit test

I have a simple 2 test unit test class that I've executed before with no problem. I added another test method (making it 2 tests total) and ran the unit test from the dev console and it just runs and runs (it's been over an hour now and it usually takes around 10 sec to complete). Any way to kill a unit test?


Go to setup > Build > Develop > Apex Test Execution > Select your test and click on Abort. It will solve your problem

How to kill a unit test

Category: unit test Time: 2016-07-31 Views: 36

Related post

  • How can I write unit tests that simplify feature implementation? 2015-06-17

    This question already has an answer here: How to Avoid Fragile Unit Tests? 7 answers When is unit testing inappropriate or unnecessary? [duplicate] 16 answers I'm a newbie to working in software development and I read a lot about how cool unit tests

  • How have you made unit testing more enjoyable? 2010-09-09

    If you've always loved unit testing, good for you! But for the unfortunate ones who weren't born with a liking for it, how have you managed to make this task more enjoyable ? This is not a "what is the right way to unit test" question. I simply

  • How to set up Unit Testing in Visual Studio 2010? 2010-09-15

    I'm doing my first big project and I don't have a lot of experience in a professional programming environment. While researching anything programming-related I often see references to Unit Testing, but I am still unclear as to how to set those up or

  • How can I advocate unit testing on private code? 2010-10-10

    I'm trying to advocate unit testing in my workgroup, but an objection I often get is that it should be used only for externally exported API (which is only a minimal and non critical part of our system), and not on internal and private code (which no

  • How to Avoid Fragile Unit Tests? 2011-09-20

    We have written close to 3,000 tests -- data has been hard coded, very little reuse of code. This methodology has began to bite us in the ass. As the system changes we find ourselves spending more time fixing broken tests. We have unit, integration a

  • How do you structure unit tests for multiple objects that exhibit the same behavior? 2011-11-01

    In a lot of cases I might have an existing class with some behavior: class Lion { public void Eat(Herbivore herbivore) { ... } } ...and I have a unit test... [TestMethod] public void Lion_can_eat_herbivore() { var herbivore = buildHerbivoreForEating(

  • How does one do unit testing in a game engine? 2012-01-24

    Much to my shame, I have never written a proper unit test, only small unorganized test programs that I would then dispose of after the test succeeded. I don't really have a clear idea of how unit testing should be performed in a game project. (My lan

  • How do I write unit tests for robots (and other mechanical devices)? 2012-04-25

    I'm a member of my high school's robotics club, and am responsible for programming the robot. One suggestion I keep hearing from various adults is that I should be writing unit tests to help validate my code. The code base is getting a bit big, and I

  • How to debug a unit test for a WordPress plugin, which uses wordpress-test? 2012-07-12

    I'm attempting to debug a unit test for a WordPress plugin. The unit test uses wordpress-test (and PHPUnit). However, wordpress-test: calls system(php ...) the new external PHP process attempts to connect to the same debugger, but the debugger is alr

  • How do I reasonably unit test calendrical calculations? 2012-11-27

    I've written some code that performs some action, depending on the day of the year and the year. There are an infinite number of years, hence an infinite number of days? What's a good way to unit test my code? I'd like to cover all of my cases, but s

  • How do we make unit tests run fast? 2013-01-25

    We have reached the point in our project where we have almost a thousand tests and people have stopped bothering with running them before doing a check in because it takes so long. At best they run the tests that are relevant to the piece of code tha

  • How do I run unit tests against datasets? (DrupalWebTestCase and DrupalTestCase) 2013-04-14

    I am testing a module that I am writing against the Unit Testing framework that comes with Drupal 7. All makes sense, and everything asserts as it should. My question though, is it possible to run test cases against test data? I can think of a few op

  • How to write a unit-test / test class for trigger? 2013-04-24

    How do I write a unit-test / test class for a trigger? What are my options? Inline with the trigger? New Class? --------------Solutions------------- Apex Trigger Code Testing Writing test code to invoke Apex Trigger logic is a requirement, even if yo

  • How to import Theme Unit Test on localhost 2013-08-14

    I am a total beginner with WP and struggle to import this xml file. Tools->Import->WordPress and here I am asked for Hostname, FTP Username, FTP Password and Connection Type. I am on local mashine... When I download the plugin and try to do it manua

  • how and should I 'unit test' an entire package? 2014-04-01

    I'm still learning to be good about doing unit level testing, as I've always been a little sloppy about only doing functional testing in the past, so I want to double check I'm doing this 'right'. I have a package which is responsible for auto-magica

  • How can I use unit tests and TDD to test an app that relies mostly on database CRUD operations? 2014-06-27

    At work, one of my projects is mostly about taking data passed in from an external client and persisting it in a database. It's a Java enterprise app using JPA and most of our logic revolves around CRUD operations. The majority of our bugs involve JP

  • How should I be unit testing the search process of a web app 2014-07-04

    A lot of the examples for unit testing that I see involve testing that numbers add up. For example, Derek Greer demonstrates unit testing a calculator app, making sure that the equals function does what it is supposed to do (

  • How to color the unit test output in Visual Studio 2013 2014-08-27

    I have some unit tests which output to the "Standard Output" view in Visual Studio. I'd like to color some lines according to the output's validity. How can that be done? Thanks! --------------Solutions------------- I am not aware of any built i

  • How can i write unit test for this actionfilter 2016-01-24

    public MyContext _db; public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext) { if (_db == null || !_db.ChangeTracker.HasChanges()) { return; } try { _db.SaveChanges(); } catch { } } This is my action filter for my wep

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.718 (s). 13 q(s)