master
rw-r--r--
20 B
rw-r--r--
1.2 KB
rw-r--r--
2.1 KB
rw-r--r--
51 B
rw-r--r--
9.4 KB
rw-r--r--
13.4 KB
rw-r--r--
2.5 KB
rw-r--r--
2.4 KB
rw-r--r--
2.1 KB
rw-r--r--
2.3 KB
rw-r--r--
1.3 KB
rw-r--r--
459 B
rw-r--r--
3.4 KB
rw-r--r--
238 B
rw-r--r--
12.8 KB
rw-r--r--
1.3 KB
rw-r--r--
2.4 KB

Testing Engine

This application allows a user to establish a testing engine that reads from csv files and serves them to the client.

Starting the Application

Compile the server with go install (from the same directory) and run it by $GOBIN/questioner -f /path/to/config/file server. The default configuration for the server is

LISTEN_ADDRESS = "127.0.0.1"
LISTEN_PORT = 80
PERMIT_BLANK_PASSWORD = true
USE_HTTPS = false
PRIVATE_KEY = "~/.ssh/question.priv"
PRIVATE_CERT = "~/.ssh/server.crt"
QUESTIONS = "/path/to/questions"
USER_TESTS = "/path/to/tests"

Compile the client with go install (from the same directory) and run it by $GOBIN/questioner --file /path/to/config/file [client]. The default configuration for the client is

SERVER = "127.0.0.1"
PORT = 80
USE_HTTPS = false

Screenshot of Client

CSV Format

The csv files should consist of the fields question,response,category,reference. The reference is an optional field. The application reads the questions from either a file or recursively from a directory; the behavior depends on the option passed under QUESTIONS in the conf file.