The log file was generated by a Quake 3 Arena server, including a great deal of information of every match.
The project implement the following functionalities:
- Read the log file
- Group the game data of each match
- Collect kill data
Just for testing you need to install all dependencies with:
npm install
Running only unit tests:
npm run test
Running tests and generate report:
npm run coverage
Running application (on root of project)
node .
"game-2": {
"total_kills": 11,
"players": ["Isgalamido", "Mocinha"],
"kills": { "Isgalamido": 3 },
"kills_by_means": {
"MOD_TRIGGER_HURT": 7,
"MOD_ROCKET_SPLASH": 3,
"MOD_FALLING": 1
}
},