Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Test code on trigger
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Test code on trigger
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 06:35 AM
Hello I have a trigger in my sandbox that moves a date from a task to an account, very simple. I wrote the test code and I have a code coverage of 100%.
When I try to move it to production, I get an error regarding another trigger (on opportunity object) that isn't linked to mine in any way.
Is the system running all the tests when I try to upload anything?
Is there a way I can bypass this sort of error?
Solved! Go to Solution.
Re: Test code on trigger
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 06:40 AM
Is the system running all the tests when I try to upload anything?
Yes. This is noted in the Migration Toolkit documentation regarding deployment ("Run All Tests is always performed when deploying to a production environment.").
Is there a way I can bypass this sort of error?
Fix the trigger so it is no longer conflicting with the other. Or modify the other so it doesn't conflict with the one you're trying to upload, if possible. You can't just flip a switch and have it bypass; this might break business logic such that your system would become unusable for your users.
~ sfdcfox ~
I am a sandwich. That is all.
Re: Test code on trigger
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-29-2013 02:19 AM
I get an error regarding another trigger (on opportunity object)
What error message?
and not everything that can be counted counts.
@Albert Einstein
Re: Test code on trigger
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-29-2013 02:39 AM
I fixed the test code of that other trigger.
It was very hard since I didn't wrote that code, but now everything works.
thanks a lot
@Moggy, the error was due to a field that had become mandatory and wasn't filled in the test code for the creation of an object.

