LoginSignup
0
0

More than 3 years have passed since last update.

【編集中】ASP.NETアプリケーションのCoverage取得

Last updated at Posted at 2020-02-17

TODO

  • クライアント/サーバ毎に考えた案を記載してない...

はじめに

タイトルに書いた通り。
サーバ側の単体テストは取得できているが、テストコード自体がそんなにないから、SeleniumでのE2Eテストで実行されたWebAPIのカバレッジを取得できるようにしたい。

参考サイト

まずは、下記を参考に試してみる。
◆IIS Support
 https://github.com/OpenCover/opencover/wiki/IIS-Support

◆OpenCover - 実行中のASP.NETアプリケーションに対するカバレッジを測定する - asp.net、opencover
 https://living-sun.com/ja/aspnet/81522-opencover-measuring-coverage-against-running-aspnet-application-aspnet-opencover.html

coverage.bat
OpenCover.Console.exe -target:C:\Windows\System32\inetsrv\w3wp.exe 
-targetargs:"-debug -s 1" 
-targetdir:%WebSite_Path% 
-filter:+[*]* 
-register:user 
-output:%CoverageResult_Path%

結果

Coming Soon... ※上記コマンドで試してみて、後で結果を記載...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0