Create Unit Tests option greyed out in Database project

In the Visual Studio in database project, when you open Solution and switch to
Schema View , go to a stored procedure and right click, you should see the
option "Create Unit Tests...".
The duduk perkara is that it can be greyed out (sometimes).


In the Visual Studio in database project Create Unit Tests option greyed out in Database project
















In my case it is greyed out when there was no successful build of the database
project, try to issue build, fix errors if you have and see again the option
"Create Unit Test" is greyed out.