tom-pytel commented on pull request #21: URL: https://github.com/apache/skywalking-nodejs/pull/21#issuecomment-754603647
> @tom-pytel I'm finding a method to test more than simple cases we have now, do you have more tests want to complement except for the tests given above? My test is more of a quick hack, a more thorough test would be something like the following: * For each possible type of entry span make sure you execute several dozen of them concurrently on the server module you are testing. * For each instance entry span make several dozen exit spans using every possible exit span type. * Each exit span type should go to target URLs which return a success, some error urls (404 and 500 specifically) as well as ignore by path and ignore by extension. * Not all of these exit paths have to be remote, to save time many of them can be simple local responders, but some remote targets must be included. The difficulty with something like this is the order of execution is guaranteed non-deterministic so checking output is tricky. But if you have this test you will very very safe against inadvertent breakage. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
