[ 
https://issues.apache.org/jira/browse/DISPATCH-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379932#comment-17379932
 ] 

ASF GitHub Bot commented on DISPATCH-1783:
------------------------------------------

jiridanek commented on pull request #1296:
URL: https://github.com/apache/qpid-dispatch/pull/1296#issuecomment-879149883


   > Is there some criteria where these benchmark test fail?
   
   There aren't in the PR, and as far as I am aware, these libs (Google 
Benchmark nor JHM) don't allow you to set any. AFAIK the idea is that some 
subsequent storage, analysis, visualization of the data is performed. For 
example, Google Benchmark produces csv or json files with the data, which serve 
as input to Python script that enforces some pass conditions.
   
   One random example of the additional infra I found 
https://www.jenkins.io/blog/2019/06/21/performance-testing-jenkins/


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> Add ability to use test doubles (mocks, fakes, ...) in C tests
> --------------------------------------------------------------
>
>                 Key: DISPATCH-1783
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1783
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 1.14.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> During the work on https://github.com/apache/qpid-dispatch/pull/684, there 
> was at one point a version of the PR, which tested what happens if 
> {{vsnprintf}} called from {{safe_snprinf}} returns {{-1}}.
> This was done by replacing the {{vsnprintf}} with a mock (technically it's 
> probably a stub, or maybe fake, but let's ignore the proper terminology).
> There are various possibilities how to approach mocking in C. They are less 
> nice than in more dynamic languages such as Java, or even C++ (where it's 
> possible to subclass things). Nevertheless, it can be useful technique, and 
> it should be explored.
> CC [~cans]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to