Comments (6)
this should be very possible, but would need a doctest expert to pair with. Usually this is a 30-40 minute thing with an expert. Are you that person?
from approvaltests.cpp.
If doing this, I'd suggest first moving the Catch2, GoogleTest and Okra implementations in to a sub-directory, as I hope that this list of supported frameworks will keep on growing...
See https://github.com/approvals/ApprovalTests.cpp/tree/master/ApprovalTests
It looks like doctest does have the ability to listen out for new tests:
https://github.com/onqtam/doctest/blob/master/examples/all_features/reporters_and_listeners.cpp
from approvaltests.cpp.
this should be very possible, but would need a doctest expert to pair with. Usually this is a 30-40 minute thing with an expert. Are you that person?
I only have time to use it :)
It looks like doctest does have the ability to listen out for new tests:
https://github.com/onqtam/doctest/blob/master/examples/all_features/reporters_and_listeners.cpp
And DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
, DOCTEST_REGISTER_REPORTER
.
from approvaltests.cpp.
Hi, no worries... Thanks very much for the suggestion - and for letting us know about another testing framework.
I really like its promise of faster build times!
from approvaltests.cpp.
Things that I'm aware of that we still need to do
- Fix the Windows builds
- Remove
using namespace doctest;
inApprovalTests/integrations/doctest/DocTestApprovals.h
- Fix the stomping on
--reporter
command-line argument in our doctest main - depends on doctest/doctest#257 or doctest/doctest#260 - Fix compiler warnings:
/cygdrive/d/Users/Clare/Documents/Programming/github/ApprovalTests/ApprovalTests.cpp/ApprovalTests/integrations/doctest/DocTestApprovals.h:16:8: warning: 'DocTestApprovalListener' has a field 'DocTestApprovalListener::' whose type uses the anonymous namespace [-Wsubobject-linkage]
struct DocTestApprovalListener : ConsoleReporter
^~~~~~~~~~~~~~~~~~~~~~~
/cygdrive/d/Users/Clare/Documents/Programming/github/ApprovalTests/ApprovalTests.cpp/ApprovalTests/integrations/doctest/DocTestApprovals.h:16:8: warning: 'DocTestApprovalListener' has a base 'doctest::{anonymous}::ConsoleReporter' whose type uses the anonymous namespace [-Wsubobject-linkage]
[ 66%] Linking CXX executable ApprovalTests_DocTest_Tests.exe
[100%] Built target ApprovalTests_DocTest_Tests
- Re-enable treating warnings as errors in
ApprovalTests_DocTest_Tests/CMakeLists.txt
- Add doctest support to all our documentation
- Add doctest to the help message for when main is not correctly configured
from approvaltests.cpp.
This is now released!
See https://github.com/approvals/ApprovalTests.cpp/releases/tag/v.3.5.0
from approvaltests.cpp.
Related Issues (20)
- Add clang12 CI build HOT 1
- Provide a script to allow users to generate the single header from the current code, without doing a release HOT 9
- Add a documentation example showing how to obtain ApprovalTests.cpp via CPM.cmake HOT 1
- Add vcpkg to our release process HOT 2
- Document how to use Approval Tests with vcpkg HOT 1
- Bullet lists not rendered correcting on Read the Docs version of our documentation HOT 3
- Add a copyright statement to the released single header HOT 1
- GitHub Actions: Don't run scheduled tasks on forked repos
- Using kdiff3 as diff tool, user has to specify name of output file after merge
- cygwin CI build hangs for 6 hours then fails HOT 5
- warning C4459 in MSVC with /W4 HOT 1
- Does not compile with clang13 due to -Werror/-Wdeprecated-copy-with-dtor HOT 2
- Ninja + Catch2 + mingw64
- useApprovalsSubdirectory() doesn't create the output directory in the expected location HOT 3
- "Unable to create directory" - unable to run test build with mingw provided by qt-installer HOT 5
- with CppUTest: `ApprovalMismatchException` suppresses other tests output HOT 4
- add `code -d {Received} {Approved}` to Reporters list
- Catch2 integration does not handle Generators inside sections HOT 1
- Catch2 v3 integration HOT 5
- Bug with {fmt} integration HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from approvaltests.cpp.