Skip to content

kuzaleks/collab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collab

Unittests based on CxxTest. The goal is to facilitate automatic grading of students labs.

Prerequisite

Installed Python with packages ply, pytest: sudo pip install ply pytest.

Installation C++ Unittests

  1. Download and unpack CxxTest.

  2. Setup env veriables:

export CXXTEST="path/to/unpacked/cxxtest/folder/"

export CPATH="$CXXTEST:$CPATH"

(e.g. export CXXTEST="/home/aliaksei-kuzmin2/Projects/utils/cxxtest-4.3/"

export CPATH="$CXXTEST:$CPATH" )

Get Started

  1. Make bin directory:

mkdir bin

  1. Generate test .cpp:

$CXXTEST/bin/cxxtestgen --error-printer -o bin/runner.cpp src/example_test.h

  1. Compile:

g++ -o bin/runner bin/runner.cpp

  1. Run the compiled test:

./bin/runner

Quickstart

In order to run python tests please use pytest facilities.

For example: py.test src/pyexample/test_labs.py

Resources

Please follow instruction on the following resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors