You need to sign in to do that
Don't have an account?
Ab
test coverage failure in Production for trigger
Helllo,
I have a trigger and a test class in Sandbox PartielHRC.
the test coverage for trigger in Sandbox is around 80% but when i deploy it in Production it has 0%, i am not bale to find the reason
The following triggers have 0% code coverage. Each trigger must have at least 1% code coverage.
any sugggestions?
I have a trigger and a test class in Sandbox PartielHRC.
the test coverage for trigger in Sandbox is around 80% but when i deploy it in Production it has 0%, i am not bale to find the reason
The following triggers have 0% code coverage. Each trigger must have at least 1% code coverage.
any sugggestions?
Thanks
Sandeep Singhal
http://www.codespokes.com/
All Answers
Thanks
Sandeep Singhal
http://www.codespokes.com/
This might be the possible scenario when we set (seeAllData = true) in test class.
As in sandbox, we have data which can be used for test coverage but in production we don't hence the trigger failed to 0%.
Please create test data within the test class and try deploy again.
Hope this will help you.
Thanks,
Gaurav
thank you for replies,
I have tried adding and removing (seeAllData = true), it makes no difference in Sandbox as i am creating my own test data
Hi Sandrine,
Can you please post the code here, so that we can review it and provide you with the exact error's
Thanks,
Gaurav
Email: gauravgarg.nmims@gmail.com