I have a custom setting which holds all the fields of an object. If i created a new custom field on the object it is need to get inserted into custom setting and for this i have written code which is working fine, now issue is to get the code coverage for this piece of code i need to create a custom field.
How to create a custom field in a object from test class?