You need to sign in to do that
Don't have an account?
ag415
Test class testing wrong trigger
Hello,
I am trying to run a test class to test a new trigger I've written that deals with the contacts object. I already have a separate trigger written which deals with accounts, and I have a separate test class for that trigger which I already ran in the past. However, I noticed that whenver I run my contact trigger test class, it seems to be testing the wrong trigger? Every time I run it, the only trigger that shows up in the "overall code coverage" window is the old accounts trigger. I even went as far as backing up the accounts trigger and the accounts trigger test class and then deleting them from my sandbox altogether, and even now, despite this, every time I try to run the contacts trigger test class it still shows the name of the old accounts trigger in the overall code coverage window, with no mention of the contact trigger at all. Is this some kind of bug in the developer console?
I am trying to run a test class to test a new trigger I've written that deals with the contacts object. I already have a separate trigger written which deals with accounts, and I have a separate test class for that trigger which I already ran in the past. However, I noticed that whenver I run my contact trigger test class, it seems to be testing the wrong trigger? Every time I run it, the only trigger that shows up in the "overall code coverage" window is the old accounts trigger. I even went as far as backing up the accounts trigger and the accounts trigger test class and then deleting them from my sandbox altogether, and even now, despite this, every time I try to run the contacts trigger test class it still shows the name of the old accounts trigger in the overall code coverage window, with no mention of the contact trigger at all. Is this some kind of bug in the developer console?
Figure 1 - Developer console showing incorrect name of trigger
Figure 2 - Detail view of trigger in Salesforce showing same results as reported in developer console, except with the correct trigger name