Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I just talked to someone at NI.</p> <p>There are Unit Test Frameworks for NI Lab View wich is something completely different.</p> <p>There is currently no solution from NI. In the past some people solved their issues using <a href="http://www.automatedqa.com/products/testcomplete/" rel="nofollow">TestComplete</a> - another route might be using <a href="http://cunit.sourceforge.net/" rel="nofollow">CUnit</a>.</p> <p>EDIT:</p> <p>Using CUNIT with CVI is really easy - though you still face some language Barriers:</p> <pre><code>#include "CUError.h" #include "CUError.c" #include "CUnit.h" #include "MyMem.h" #include "MyMem.c" #include "TestDB.h" #include "TestDB.c" #include "TestRun.h" #include "TestRun.c" #include "Util.h" #include "Util.c" #include "Automated.h" #include "Automated.c" </code></pre> <p>Using theese include statements should allow you to run this code:</p> <pre><code>static void testFail(void) { CU_ASSERT(0); } //Suite Definitions static CU_TestInfo tests_GenList[] = { { "Should Fail", testFail }, CU_TEST_INFO_NULL, }; static CU_SuiteInfo suites[] = { { "Generic List Suites", NULL, NULL, tests_GenList }, CU_SUITE_INFO_NULL, }; void AddTests(void) { assert(NULL != CU_get_registry()); assert(!CU_is_test_running()); /* Register suites. */ if (CU_register_suites(suites) != CUE_SUCCESS) { fprintf(stderr, "suite registration failed - %s\n", CU_get_error_msg()); exit(EXIT_FAILURE); } } int main (void) { CU_initialize_registry(); AddTests(); CU_set_output_filename("Result\\TestAutomated"); CU_list_tests_to_file(); CU_automated_run_tests(); CU_cleanup_registry(); return 0; } </code></pre> <p>Also copy these files into your Result directory:</p> <pre><code>CUnit-List.dtd CUnit-List.xsl CUnit-Run.dtd CUnit-Run.xsl md2xml.pl Memory-Dump.dtd Memory-Dump.xsl </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload