Why can't I get code coverage for my trigger, even though I wrote a complete unit test?
7197
How to write a unit-test / test class for trigger?
6861
System.FinalException: Record is read-only: Trigger.updateCompetitors: line 24
151843
Unit testing that events are raised in C# (in order)
142881
How do I write tests correctly using unittest?
45347
How do you know what to test when writing unit tests?
82821
Salesforce Test Coverage "Stuck" at 0%
75191
Avoiding unused variables warnings when using assert() in a Release build
8564
How do you assert that a certain exception is thrown in JUnit 4 tests?
90541
Calling Apex class from trigger - issues with passing a list
83962
Unit testing code which has logic around the CreatedDate
127404
Why is 75% code coverage required in Salesforce?
7606
How do I unit test code that includes a callout?
158487
Helper & Trigger Testing Assistance
110448
Unit testing error conditions - EINTR
11443
Managed package callout invoked from managed package extension causing test class failure
137226
Not able to get the expected Assert statement in my test Class
32065
Attempt to de-reference a null object: Trigger