Add last test launch time in the new /api/runs route
This commit is contained in:
@@ -227,7 +227,10 @@ var ApiController = function(app) {
|
||||
// Counts all pending runs
|
||||
app.get('/api/runs', function(req, res) {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.send(JSON.stringify({pendingRuns: queue.length()}, null, 2));
|
||||
res.send(JSON.stringify({
|
||||
pendingRuns: queue.length(),
|
||||
timeSinceLastTestStarted: queue.timeSinceLastTestStarted()
|
||||
}, null, 2));
|
||||
});
|
||||
|
||||
// Delete one run by id
|
||||
|
||||
Reference in New Issue
Block a user