lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 14b0775 1/4: Remove monthly trace file create


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 14b0775 1/4: Remove monthly trace file created by output validation unit test
Date: Mon, 30 Jul 2018 10:36:22 -0400 (EDT)

branch: master
commit 14b0775a6a2bb2f35d8771bca7234659369790b7
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Remove monthly trace file created by output validation unit test
    
    This file was created as a side effect of running the cell in the test
    case for copying illustration data and was never removed.
    
    Add an output_file_existence_checker testing that the file was indeed
    created (which is not really required, but doesn't seem like it could
    cause any harm) and, more importantly, ensuring that it is removed at
    the test end.
---
 wx_test_validate_output.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/wx_test_validate_output.cpp b/wx_test_validate_output.cpp
index edb336d..d21e1df 100644
--- a/wx_test_validate_output.cpp
+++ b/wx_test_validate_output.cpp
@@ -333,12 +333,22 @@ void validate_run_cell_and_copy_output
         ,std::string const& insured_name
         )
 {
+    std::string const cell_trace_file
+        (corp_name + "." + insured_name + monthly_trace_suffix(1)
+        );
+    output_file_existence_checker output_cell_trace(cell_trace_file);
+
     wxUIActionSimulator ui;
 
     ui.Char(WXK_HOME);           // Select the first cell.
     ui.Char('r', wxMOD_CONTROL); // "Census|Run cell"
     wxYield();
 
+    LMI_ASSERT_WITH_MSG
+        (output_cell_trace.exists()
+        ,"file \"" << cell_trace_file << "\" after running the cell"
+        );
+
     std::string const ill_data_file
         (corp_name + "." + insured_name + serial_suffix(1) + tsv_ext()
         );



reply via email to

[Prev in Thread] Current Thread [Next in Thread]