简体   繁体   中英

Can SpecWatchr integrate with dotCover?

在NSpec可以SpecWatchr工具与集成dotCover通过试验分析代码覆盖率?

SpecWatchr is simply a file watcher that executes rake tasks in a Rakefile. Using DebuggerShim.cs (decorated with NUnit's TestFixture attribute), you should be able to create a rake task that will run that specific test through dotCover.

Link to DebuggerShim.cs: https://github.com/mattflo/NSpec/blob/master/NSpecSpecs/DebuggerShim.cs

And then you can change SpecWatchr to run dotCover if DebuggerShim.cs is changed: https://github.com/amirrajan/SpecWatchr/blob/master/dotnet.watchr.rb#L223

Rake file execution in SpecWatchr: https://github.com/amirrajan/SpecWatchr/blob/master/dotnet.watchr.rb#L177

Feel free to reach out to me on twitter, I'd be happy to set up a Skype session to walk you through it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM