Chris
Chris

Reputation: 223

my unittest passes but says zero percent coverage

I wrote a unittest for my model, the test passes but it says I have zero percent coverage. Any advice would be appreciated. enter image description here

Upvotes: 0

Views: 206

Answers (1)

Aamir Rind
Aamir Rind

Reputation: 39689

This is a known issue, models are already imported before test command is executed because of app configuration process. Try to apply the patch given by eliangcs.

Upvotes: 1

Related Questions