Comments (5)
Just to note that we are actively working on this currently, with the help of @Laguna1989:
See:
Our next step is to update the documentation, and then we will release it.
Any workaround?
@ricardomatias, if you wish to read through the changes in the above PRs, you are welcome to try.
Otherwise, it will be released soon, likely within the next few weeks.
from approvaltests.cpp.
This is done and will be released soon
from approvaltests.cpp.
@ricardomatias Please use the last-released version of Approval Tests until we have fully tested, documented and released Catch2 V3 support. Thanks.
from approvaltests.cpp.
Any workaround?
from approvaltests.cpp.
Thanks @claremacrae. I'm unsure if it's related, but I get a ApprovalMissingException
(using master branch). I'm linking in cmake via target_link_libraries(${TEST_BASENAME} ApprovalTests::ApprovalTests Catch2::Catch2WithMain)
and each test executable includes also the following file with:
#define APPROVALS_CATCH2_V3
#include "ApprovalTests.hpp"
#include <catch2/catch_all.hpp>
auto defaultReporterDisposer = ApprovalTests::Approvals::useAsDefaultReporter(
std::make_shared<ApprovalTests::AutoApproveIfMissingReporter>());
auto directoryDisposer = ApprovalTests::Approvals::useApprovalsSubdirectory("snapshots");
The .received.txt
file is created but nothing prompts it to be approved even with AutoApproveIfMissingReporter
. It's also not clear how ApprovalTests tries to find the diffing tools in the path, but I have visual studio code in the path.
from approvaltests.cpp.
Related Issues (20)
- 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
- Bug with {fmt} integration HOT 2
- CLion reporter does not open correctly if CLion is already open
- In-lining test output (as opposed to saving in files) HOT 4
- Support for catch2 v3.x.x HOT 2
- Diffing tool is never prompted to open HOT 13
- Impossible to use UNC filename in TemplatedCustomNamer [`removeRedundantDirectorySeparators()` breaks use of UNC paths, which contain `\\`] HOT 5
- _mkdir fails when asked to create more than one directory 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.