These are chat archives for Snaipe/Criterion

20th
Jan 2016
EdMaurer
@EdMaurer
Jan 20 2016 18:52
My team is evaluating unit testing frameworks for our C++ API. Was planning on using xUnit++, but someone suggested looking at yr project. I have two questions. Can tests be run concurrently and is there any Visual Studio integration?
Franklin Mathieu
@Snaipe
Jan 20 2016 18:55
@EdMaurer Tests can indeed be run concurrently. There is no VS integration yet, but I guess I can put this into the TODO list.
Although, if by integration you mean getting detailed reports from the IDE, if there is a plugin to parse JUnit XML reports, then it could be possible
EdMaurer
@EdMaurer
Jan 20 2016 19:07
Thanks @Snaipe. I had a very positive experience using xUnit in the .NET world with VS. Tests could be launched via context menu. Failures showed up in the error window. Selecting the error would open the file with the test code. I was very productive. I'm looking to recreate that with our C++ API, or get as close as I can.
Franklin Mathieu
@Snaipe
Jan 20 2016 19:13
IDE & editor integration is not something that has really been done since the project is still a bit young -- although I do plan to make these kind of integrations easier
I'm absolutely not familiar with xUnit++, but Criterion tries to be as much simple as possible while keeping the extensibility and being cross platform
Franklin Mathieu
@Snaipe
Jan 20 2016 19:19
So, currently I'm afraid that tests are best run from the command line or all at once from a CI server. The project tries to make sure that whatever happens inside a test function does not change the state of the runner nor crashes its state
@EdMaurer Also, are you specifically targetting Microsoft Platforms?
EdMaurer
@EdMaurer
Jan 20 2016 19:39
Today our project runs on Windows but we are in the process of bringing it to Linux. Someone from our team is gonna take a closer look at Criterion. Thanks for your responses. xUnit++ has the distinct downside that the project maintainer has moved on.
Franklin Mathieu
@Snaipe
Jan 20 2016 19:46
Okay. Feel free to ask anything if you or your team has any other questions, I'll do my best to answer them.