OpenXLSX
A C++ library for reading, writing, creating and modifying Microsoft Excel® (.xlsx) files. (by troldal)
doctest
The fastest feature-rich C++11/14/17/20/23 single-header testing framework (by doctest)
OpenXLSX | doctest | |
---|---|---|
7 | 20 | |
1,447 | 6,089 | |
2.2% | 1.0% | |
8.7 | 0.0 | |
4 days ago | 2 months ago | |
C++ | C++ | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
OpenXLSX
Posts with mentions or reviews of OpenXLSX.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-22.
-
New programmer C++ question: OpenXLSX
I don't know enough of what I'm doing to know how to install it myself, despite reading some of this stuff. (https://github.com/troldal/OpenXLSX/blob/master/README.md). Old dog learning new tricks...
-
Edit a single cell in an excel spreadsheet with c++
But you're in luck. There just so happens to be a free lib floating around: https://github.com/troldal/OpenXLSX
-
Hello, I was wondering how hard it will be to print from c++ to excel. I've already done it to csv, but from what I've heard, to excel is far more difficult. Is it really that hard? And where can I learn how to do it? (I dindn't find anything interesting on YT). Thanks for the help!
XLSX is just a compressed XML format that Excel can read. It’s a bit of a pain in the ass to author yourself. But a quick google search yielded OpenXLSX.
-
How do I parse .xlsx files in C++?
This one https://github.com/troldal/OpenXLSX looks promising, atleast from readme. Haven't used it.
- Creating module/addon to process excel file type.
-
Can't compile example program from external library
https://github.com/troldal/OpenXLSX/blob/master/CMakeLists.txt#L21
-
xlsx with VSCode and Qtcreator function propagation
To read and write xlsx files you would likely want to use a library. Google finds these: https://www.libxl.com/ and https://github.com/troldal/OpenXLSX
doctest
Posts with mentions or reviews of doctest.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-11-24.
-
The Two Factions of C++
catch2 has become fairly bloated. doctest takes all of the best parts of catch2 without all the bloat and the end result is a test framework that is literally over 10x faster than catch2. It's also like 90% compatible with catch2 so porting your tests to it is pretty easy.
Especially if you have a build process that always runs your unit tests, it's nice to have a very fast test/compile/debug loop.
https://github.com/doctest/doctest
-
Unit testing tool suggestions
I have never used "tools" for unit-tests, only web sites that show the results of the tests or code coverage. For C++ I prefer https://github.com/doctest/doctest but most companies I worked for use Catch2.
-
Question about Doctest.h
Do the README and tutorial not explain it well enough? It's a framework for automated unit testing.
- Doctest – C++ Testing Framework
-
Memory Safety in the D Programming Language (Part 2 of N)
This is, honestly, super easy to get going. Nowadays you have a ton of libraries and more-than-decent build systems. With Meson/CMake and Conan/Vcpkg I can set up a project with testing in 3 minutes. Also, I think that at the end of the day you want your tests to live somewhere else. But if you want to embed them, you also have https://github.com/doctest/doctest.
-
how can I improve my connect4 board class?
Write some tests. They can find bugs early and give you confidence that your code works so far. That doesn't have to be anything fancy, e.g. with doctest:
-
Testing framework Catch2 3.0 final released
Keep in mind https://github.com/doctest/doctest/issues/554. Also, doctest lacks: - Matchers - Data generators - Benchmarking - ...
-
Check if my code meets the requirements?
Your requirements can easily simulated on paper (like increase the speed once, twice, ...), then translated to unit-tests with a framework like https://github.com/doctest/doctest.
- The Lisp Curse
-
C++17 python like print function
For stuff like this which is very easy to test (very predefined input vs output), I highly suggest using some testing framework. Catch2 is great, but there is also doctest and good ole googletest. If you do this, it would also be a great intro to CI, where you do some plumbing on github or gitlab where every commit causes a build to happen on their servers and run through the unit tests, and if it passes it gets merged into master.