Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Introduce google dll test runner app

#4

As a better solution to the creation of an executable with tests outside of a dll to be tested, Joce came up with using an executable that loads the target dll and grabs the exported tests, runs them (accepting all gtest arguments), and returns the appropriate return code when completed.

The original npp-community thread for Scintilla test enabling was npp-community ticket#35

Reported by Thell Fowler · February 20th, 2010 @ 12:13 AM

State: needs_ack
Milestone: npp-community 2.0
Assigned to: npp-community npp-community

Activity

  1. Thell Fowler
    Thell Fowler

    History entry:


    Changeset [7677a4c3b42048d88a01ed180e3114348a676b38] by Jocelyn Legault

    February 18th, 2010 @ 09:53 PM

    Micro test runner: creation.

    Created this micro test runner that takes as parameters a
    path to a DLL and GTest arguments. Provided that the DLL
    exports a test runner function such as:


    #ifndef SHIPPING extern "C" declspec(dllexport)
    int
    stdcall RunTests(int argc, TCHAR* argv[])
    {

    testing::InitGoogleTest(&argc, argv);
    return  RUN_ALL_TESTS();
    

    } #endif
    The runner will trigger the execution of the tests
    contained in the DLL.

    [#35]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/npp-community/nppcr_googletest/commit/7677a4c3b42...

    Committed by Jocelyn Legault

    February 20th, 2010 @ 12:16 AM

  2. Thell Fowler
    Thell Fowler

    History entry:


    Changeset [72e71812225762aa9a81abc4122593bc6d587782] by Jocelyn Legault

    February 18th, 2010 @ 11:53 PM

    Test runner: run in non-unicode.

    * Running the UNICODE runner caused problems with input characters.
    * The code was not returning the value of the unit tests run.
    

    [#35]

    Signed-off-by: Jocelyn Legault jocelynlegault@gmail.com
    http://github.com/npp-community/nppcr_googletest/commit/72e71812225...

    Committed by Jocelyn Legault

    February 20th, 2010 @ 12:21 AM

  3. Thell Fowler
    Thell Fowler

    Pushed the latest rendition of Joce's jl/LH-35/micro-test-runner branch back to the gtest repository with the appropriate topic title of jl/LH-4/introduce-dll-test-runner-app and removed the old topic from the repo.

    February 20th, 2010 @ 12:29 AM

  4. Thell Fowler
    Thell Fowler

    (from [98a9e97b852603806be13d0f20699a1c0bd7c428]) gtest_runner: setup project to match established settings

    • Make runner.exe an integrated part of the N++CR google test solution.

    • Remove runner solutions and add project to existing solutions.

    • Rename and move runner.cpp to src\gtest_runner.cc and rename output from runner.exe to gtest_runner.exe to match naming conventions.
    • Utilize N++CR vsprops to match existing output path locations.
    • Fix vc8 project character set to match vc9 to fix remove conversion error.

    • This commit matches the npp-community ticket npp-community ticket#35

    [#4 Introduce google dll test runner app]

    Signed-off-by: Thell Fowler git@tbfowler.name
    http://github.com/npp-community/nppcr_googletest/commit/98a9e97b852...

    February 20th, 2010 @ 12:45 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.