Introduce google dll test runner app
Reported by Thell Fowler | February 20th, 2010 @ 12:13 AM | in npp-community 2.0
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
Comments and changes to this ticket
-
Thell Fowler February 20th, 2010 @ 12:16 AM
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
-
Thell Fowler February 20th, 2010 @ 12:21 AM
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
-
Thell Fowler February 20th, 2010 @ 12:29 AM
Pushed the latest rendition of Joce's
jl/LH-35/micro-test-runner
branch back to the gtest repository with the appropriate topic title ofjl/LH-4/introduce-dll-test-runner-app
and removed the old topic from the repo. -
Thell Fowler February 20th, 2010 @ 12:45 AM
(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]
Signed-off-by: Thell Fowler git@tbfowler.name
http://github.com/npp-community/nppcr_googletest/commit/98a9e97b852... -
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Google Testing Framework for use with Notepad++ Community Release