[BUG]: ExecutionSummaryPlugin not being recognized #1223
-
DescriptionIn my devproxyrc.json file, I have enabled to the ExecutionSummaryPlugin so that I can record and generate a summary of the requests and responses. This is the full definition of the file: {
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.19.1/rc.schema.json",
"plugins": [
{
"name": "ExecutionSummaryPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "executionSummaryPlugin"
},
{
"name": "GraphMockResponsePlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "graphConnectorMocks"
}
],
"urlsToWatch": [
"https://graph.microsoft.com/v1.0/*",
"https://graph.microsoft.com/beta/*",
"https://graph.microsoft.us/v1.0/*",
"https://graph.microsoft.us/beta/*",
"https://dod-graph.microsoft.us/v1.0/*",
"https://dod-graph.microsoft.us/beta/*",
"https://microsoftgraph.chinacloudapi.cn/v1.0/*",
"https://microsoftgraph.chinacloudapi.cn/beta/*"
],
"graphConnectorMocks": {
"mocksFile": ".devproxy/graph-connector-mocks.json"
},
"executionSummaryPlugin": {
"groupBy": "url"
}
} Expected behaviourThe plugin is correctly enabled and I can:
Actual behaviourThe plugin is ignored:
Steps to reproduce
{
"name": "ExecutionSummaryPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "executionSummaryPlugin"
},
devproxy --summary-file-path report.md Observe how devproxy fails to start because the --summary-file-path isn't recognized. Dev Proxy Version0.19.1 Operating system (environment)Windows ShellPowerShell Configuration file{
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.19.1/rc.schema.json",
"plugins": [
{
"name": "ExecutionSummaryPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "executionSummaryPlugin"
},
{
"name": "GraphMockResponsePlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "graphConnectorMocks"
}
],
"urlsToWatch": [
"https://graph.microsoft.com/v1.0/*",
"https://graph.microsoft.com/beta/*",
"https://graph.microsoft.us/v1.0/*",
"https://graph.microsoft.us/beta/*",
"https://dod-graph.microsoft.us/v1.0/*",
"https://dod-graph.microsoft.us/beta/*",
"https://microsoftgraph.chinacloudapi.cn/v1.0/*",
"https://microsoftgraph.chinacloudapi.cn/beta/*"
],
"graphConnectorMocks": {
"mocksFile": ".devproxy/graph-connector-mocks.json"
},
"executionSummaryPlugin": {
"groupBy": "url"
}
} Additional InfoNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks for raising the issue. Looking into this it seems like you've unfortunately hit an issue with our docs and they need to be updated. The The following is a modified version of your config file that creates a markdown report using the {
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.19.1/rc.schema.json",
"plugins": [
{
"name": "ExecutionSummaryPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "executionSummaryPlugin"
},
{
"name": "GraphMockResponsePlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
"configSection": "graphConnectorMocks"
},
{
"name": "MarkdownReporter",
"enabled": true,
"pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll"
}
],
"urlsToWatch": [
"https://graph.microsoft.com/v1.0/*",
"https://graph.microsoft.com/beta/*",
"https://graph.microsoft.us/v1.0/*",
"https://graph.microsoft.us/beta/*",
"https://dod-graph.microsoft.us/v1.0/*",
"https://dod-graph.microsoft.us/beta/*",
"https://microsoftgraph.chinacloudapi.cn/v1.0/*",
"https://microsoftgraph.chinacloudapi.cn/beta/*"
],
"graphConnectorMocks": {
"mocksFile": ".devproxy/graph-connector-mocks.json"
},
"executionSummaryPlugin": {
"groupBy": "url"
}
} |
Beta Was this translation helpful? Give feedback.
-
The PR to update docs has been merged, therefore I will close the issue. |
Beta Was this translation helpful? Give feedback.
Thanks for raising the issue.
Looking into this it seems like you've unfortunately hit an issue with our docs and they need to be updated.
The
--summary-file-path
option was removed and the plugin was updated to use a reporter plugin which outputs the report in the format of the reporter you specify.The following is a modified version of your config file that creates a markdown report using the
MarkdownReporter
plugin.