Console C++ Starter Kit

It's true that all this begin in 1999 with de PMLite wich is a portable code in C Langage to develop for multi-plateforms.

Now it is acheived with using it in a C++ Console Project for Visual Studio Community and  it's a GitHub project :

mabyre/Console-CpluPlus- StarterKit

Why this is a starter kit, because the way to add or remove a part of code, unable or disable a test is made the easiest way has possible. You create a new code just bay copy/paste an existing code then you have a new space to write some new code that is entirely testing.

If you do well, with all open sources code provided in Github, at execution you will be able to see this :

The Console C++ Starter Kit making traces in ASReporter
The Console C++ Starter Kit making traces in ASReporter

What do we have on this :

  • In black, the C++ Console with the smart menu system

  • The main window of the ASTraceReporter that display traces 

  • That all folks

The world wide developers world opens up to you. There is no much things to add just come and have a look.

Console C++ StarterKit on GitHub

How to works with Eclipse Luna - some reflexes

Working with Eclipse, there are some reflexes to take. Because it's very different from other IDE. First of all a screen shot when you want to change your working project they call it "switch workspace" :

Eclipse change working project - switch workspace

Then you "commut" form a workspace to another.

Trace Reporter

Trace Reporter is a set three software elements that makes a Test and Validation System for your developments in C language. Even now it is so hard to find those kind of tools in C language.

The three software elements are :

  1. ASDLLTrace
  2. ASReporter
  3. ConsoleMinGW

ASDLLTrace

Is a DLL that you use into your project to communicate with ASReporter. ASDLLTrace and ASReporter communicates by socket TCP/IP.

ASReporter

Is a Window's application that can run remotly to display traces send by ASDLLTrace. In your C Codes you use function provide by PMLite to make Traces.

ConsoleMinGW

Is an example of an implementation of a C Project using PMLite (PM is for Protocol Machinery) sources to enhanced Traces and Unit Testing with Eclipse IDE.

What can you do with TraceReporter

make unit testing

make traces archives for reexecution of code

assure non regression

Front page of a project under unit tests

This time I will show you how to make tests under Eclipse IDE. This is the front page :

Trace Reporter - Tests & Validation System in C Language under Eclipse

Here is the front page of the full project in action. What can we see :

In the top left, we have the project called ConsoleMinGW witch is a C language project that show 2 basic unit tests :

  • TChar.c is a test uppon Char variable in C
  • TMenu.c who implement the use of Menu's Module provided by the PMLite

Next following on the left, we have PMLite witch is C Sources uppon ASTrace.h to make traces. PMLite implements much more we will see it further.

In the middle of the front page, we have TestMain.c using by ConsoleMain.c to implement Unit Tests, we can see the Unit Test of Menu and Char.

Down the middle, we have the Eclipse's console that shows the program's execution. The user that need to run tests can choose between menus and sub-menus. We can see how to pass parameters to menu and much more we will see later.

To finish, we have a window that shows the ASReporter witch display traces. they are two modules that display traces, the "stack usage" and the "memory report". PMLite provide the C codes to do so.

Retreive participate to this project en GitHub

TraceReporter on GitHub

You want to know more? Do fill free to contact us.