Using boost :: test with Visual Studio 2010 - how to view test result?

I am using boost :: test with Visual Studio 2010 in a Win32 console project. boost :: test seems to take care of the function main()by providing its own. It seems like I do not need to provide main().

The thing is, I want my console output not to disappear right away, but that means that I need to somehow define the function main()so that it stays on the screen. The thing is, any attempts that I make to redefine main()seem ignored.

I know that Cppunit can output test results at compile time - does boost: test have something like this?

+3
source share
4 answers

I use this configuration: in one solution, I have a main project and a test project; the main project depends on the testing project; The test project has a post-build event with $ (TargetPath), which starts the test project and redirects the output to the output window. Test errors can be found by double-clicking the corresponding line in the output window.

+7
source

Ctrl + F5 - start without debugging. This will open the output window.

+3
source

Gallio Gallio . , Gallio ( , , , CC.Net, NAnt ..).

0
source

Source: https://habr.com/ru/post/1781122/


All Articles