Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test coverage tool for Behave test framework

We are using Behave BDD tool for automating API's. Is there any tool which give code coverage using our behave cases?

We tried using coverage module, it didn't work with Behave.

like image 651
user3374477 Avatar asked Mar 03 '14 10:03

user3374477


1 Answers

You can run any module with coverage to see the code usage. In your case should be close to coverage run --source='.' -m behave

Tracking code coverage for Aceptace/Integration/Behaviour test will give a high coverage number easily but can lead to the idea that the code are properly tested.

Those are for see things working together, not to track how much code are well 'covered'.

Tying together unittests and coverages makes more sense to me.

like image 103
Enrique Paredes Avatar answered Oct 22 '22 01:10

Enrique Paredes