i cant find the errors for this topic
here's the courses : Premiers pas avec les tests unitaires Apex | Salesforce Trailhead
Errors on my editor :
This class name's value is invalid: TemperatureConverterTest. Provide the name of an Apex class that has test methods.
5 réponses
Hello @El mehdi AIT TALBALI,
The error "This class name's value is invalid: TemperatureConverterTest" usually means that the class doesn't have any valid test methods or the name is not correctly set up.
To resolve this:
- Check Class Name: Ensure the class is named TemperatureConverterTest exactly as expected, including correct capitalization.
- Add Test Methods: Make sure the class contains test methods annotated with @isTest. For example:
@isTest
private class TemperatureConverterTest {
@isTest
static void testCelsiusToFahrenheit() {
// Your test logic here
}
}
Save and Compile: After making changes, save and compile the class again.
Regards
Sunny Patwa