joshiayush / xtest Goto Github PK
View Code? Open in Web Editor NEWC++ testing framework inspired by googletest.
License: BSD 3-Clause "New" or "Revised" License
C++ testing framework inspired by googletest.
License: BSD 3-Clause "New" or "Revised" License
Currently while debugging, a bug has been come out where different flags are messing up with the algorithm. For example, flag nameshuffle
is messing up with the algorithm when flag --color=no
is used; ParseFlagValue()
returns true
for flag name shuffle
when --color=no
is used this is because of the statement *flag_end == '\0'
in ParseFlagValue()
. This is a bug in ParseFlagValue()
and needs to be fixed.
A solution is to write a custom algorithm that will find the flag value in the given flag while also taking into account if the value is defined optional or not.
Lines 483 to 501 in 5a06d39
Replacing this fairly simple algorithm with a more robust one might help in solving this bug. I'll upload a more robust algorithm once I'll get time for it.
At the moment, we don't have any API that can also capture the output streams (stdout/stderr), so even to test our own xtest
API we have to use the redirector
API that we have inside of our tests which is not completely efficient. So, what I have decided to do is to implement a CapturedStream
API similar to the one that googletest uses.
Problems with RedirectorContext
:
What googletest
have for us:
Simplicity; (following example is taken from the cjson
library).
testing::internal::CaptureStdout();
PrintSstream(&sstream, FALSE);
std::string stdout_output = testing::internal::GetCapturedStdout();
It has been noticed that providing flag --color
with either no
or yes
value has no effect on the output of the library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.