You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Our integration tests are based on functions from the samples project. To run in
56
56
this.StartFunctionHost(nameof(<FUNCTIONNAME>), lang); // Replace <FUNCTIONNAME> with the class name of the function this test is running against
57
57
// test code here
58
58
}
59
-
```
59
+
```
60
60
Ex: When the test has parameters:
61
61
62
62
```
@@ -86,4 +86,20 @@ Our integration tests are based on functions from the samples project. To run in
86
86
this.StartFunctionHost(nameof(<FUNCTIONNAME>), lang); // Replace <FUNCTIONNAME> with the class name of the function this test is running against
87
87
// test code here
88
88
}
89
-
```
89
+
```
90
+
91
+
## Troubleshooting Tests
92
+
93
+
This section lists some things to try to help troubleshoot test failures
94
+
95
+
### Enable debug logging on the Function
96
+
97
+
Enabling debug logging can greatly increase the information available which can help track down issues or understand at least where the problem may be. To enable debug logging for the Function open [host.json](../samples/samples-csharp/host.json) and add the following property to the `logLevel` section, then rebuild and re-run your test.
98
+
99
+
```json
100
+
"logLevel": {
101
+
"default": "Debug"
102
+
}
103
+
```
104
+
105
+
WARNING : Doing this will add a not-insignificant overhead to the test run duration from writing all the additional content to the log files, which may cause timeouts to occur in tests. If this happens you can temporarily increase those timeouts while debug logging is enabled to avoid having unexpected failures.
0 commit comments