profile
viewpoint
Florian Hämmerle lusbuab watson ℅‎ FixxPunkt AG Zurich, Switzerland https://www.watson.ch

DaGrisa/FHV-Master 0

master course seminar assignments and projects

lusbuab/newww 0

The npm website

startedosdevisnot/klap

started time in a month

issue commentvolument/baretest

Tests exit with error code 0

Hi @piuccio, I love the minimalistic approach of Baretest. It makes it quite easy to build on top of it.

Regarding your problem with all tests having the same name: maybe this comment is helpful.

piuccio

comment created time in a month

issue commentvolument/baretest

I dont get what should be in a distributed test

Hi @aldomendez, this is something I was also wondering about. According to the source code of baretest it currently is not possible to get the same exact nice output as in the screenshot on the baretest website.

I ended up with this:

// baretest calls console.info at the end of the suite. 
// this adds ugly new lines between the output of multiple suits
// let's redefine console.info to get rid of those extra line breaks
console.info = () => {};

async function runTests() {
  await require("./test/users").run();
  await require("./test/teams").run();
  await require("./test/sharing").run();
  await require("./test/commenting").run();
  await require("./test/billing").run();
}

runTests();

Then each of the test files exports the test suite like this:

const test = module.exports = require("baretest")("Users");
const assert = require("assert");

test("...", function () { /* ... */ })
aldomendez

comment created time in a month

startedvolument/baretest

started time in a month

startedluruke/browser-2020

started time in 2 months

startedalibaba/anyproxy

started time in 3 months

more