I'm developing a C++ software product for Windows. I wrote tests for it using the Catch2 framework. They are automated in CI/CD pipeline in Azure Dev Ops (ADO). What I would like to do is to get a crash dump (.dmp file) automatically created and saved in this ADO pipeline, when there is a crash in my code (e.g. unhandled exception). I don't see anything in Catch2 framework to allow crash dump collection. I'm using the tool procdump.exe elsewhere to create crash dump, and I'm wondering if there is a way to run this tool with my Catch2 tests to get a dump when a crash happens. Any tips on how that can be done, or using other tools, will be helpful, thanks! Darren
How can I enable crash dumps in Catch2 C++ tests in Azure DevOps CI/CD pipeline?
329 views Asked by Darren Cohen At
1
There are 1 answers
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in TESTING
- Using ES Modules with TS, and Jest testing(cannot use import statement outside module)
- Mocking AmazonS3 listObjects function in scala
- How to refer to the filepath of test data in test sourcecode?
- No tests found for given includes: [com.bright.TwitterAnalog.AuthenticationControllerSpec.Register user with valid request](--tests filter)
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- How to use Mockito for WebClient get call?
- Jest + JavaScript ES Modules
- How to configure api http request with load testing
- How can I make asserts on outbound HTTP requests?
- higher coefficient of determination values in the testing phase compared to the training phase
- Writing test methods with shared expensive set-up
- Slow performance when testing non-local IP services with Playwright
- uiState not updating in Tests
- Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
Related Questions in CRASH-DUMPS
- SymFromAddr fails on AMD Machine with the error message "Attempt to access Invalid address"
- Understanding the Dump for w3p app with WinDbg
- Invalid Pointer Read (Access Violation) from undocumented KERNELBASE methods crashing Windows Services
- Produce a Windows Crash Dump Without User Intervention And Get An Error Dialog
- Analyzing a Crash Dump file - Is it possible to peek into Thread's message queue?
- How to create stack trace for other process(out of process) when it crashes in google breakpad?
- CPP Exception handler not called for exceptions during mutex lock
- Register mutation, is it a CPU hardware issue or a software issue
- How to fix “No matching binary found” for Microsoft dll in Visual Studio
- VS2019 Compiled DLL is not generating crash dump (WER)
- How to precisely append specific heap memory region into a custom crash dump via MiniDumpWriteDump API in DbgHelp library?
- Reading call stack from Windows crash dump in C++
- crash: invalid structure member offset: kmem_cache_s_num FILE: memory.c LINE: 9619 FUNCTION: kmem_cache_init()
- GCP cloud-run - Python code does not leave stack-trace when it crashes
- Can I create a crash dump for my launch daemon on a macOS when it crashes?
Related Questions in CATCH2
- C++ Catch2 : Generate a array with random values
- Catch test for .cpp file not running properly - Randomness seeded shows, and then it exits
- Catch2 Unit Tests - could not find env executable
- C++ Catch unit tests with junit reporter misses tests without any output
- Visual Studio Test Adapter for Catch2: unit tests for C++ code on remote linux
- Integrating Catch2 Unit Tests to a project which is structured with tests close to each library
- Catch2 SECTIONs equivalent in GoogleTest
- CMake script for Catch2 version 3.x
- Test a custom c++ macro with catch2
- Dependency for native build in Meson
- Is there a better way to test for Liskov substitution principle using catch2?
- How to make Catch2 test run after every rebuild?
- How to specify which test to run (by label) using ctest with Catch2 framework?
- Catch2: Checking if result is 0.0 with a relative error fails
- How to avoid ctest running catch2's benchmark by default (make benchmarks ber untime opt-in rather than opt-out)?
Related Questions in PROCDUMP
- Looking for a tool to monitor process exceptions with stack traces in real-time
- Generate Core of process running in GDB Batch Mode
- Capture memory dump with stack for a given exception type seen to occur at a given frequency
- C# program with access violation in iertutil.dll at exit
- Creating a process dump for Azure App service
- Debugging an unexpected process exit with a strange exit code
- Executing procdump64.exe remotely using wmic
- Program execution continues after procdump created a dump on an exception
- Need to separate multiple tokens into multiple parameters that can then be set to separate variables
- How can I enable crash dumps in Catch2 C++ tests in Azure DevOps CI/CD pipeline?
- Using procdump to listen to all exceptions doesn't work
- Procdump: How to capture usable IIS crash dump
- Using procdump as AeDebug tool, how can I change dump directory?
- Why can't ProcDump record memory contents of a 32-bit process under 64-bit Windows 10?
- Hung Winforms app does not trigger dump file using procDump64
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I ended up using procdump.exe to launch my Catch2 test executable. For example:
Since in my case MyCatch2Tests.exe runs the tests in a single process, the above should work. If I have a crash in my tests a full crash dump (*.dmp file) will be created in the CrashDumpFolder.