From ada40e36db891e1176754e1499a7f994d8a35ffb Mon Sep 17 00:00:00 2001 From: rejas Date: Sat, 17 Apr 2021 12:35:10 +0200 Subject: [PATCH 1/5] Add codecov yaml to set informational mode --- codecov.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 codecov.yaml diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 00000000..3f76e9b5 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,6 @@ +coverage: + status: + project: + default: + # advanced settings + informational: true From 552e82f44df30be6c7bc63dcc72360ad375af6b3 Mon Sep 17 00:00:00 2001 From: rejas Date: Sat, 17 Apr 2021 12:35:46 +0200 Subject: [PATCH 2/5] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index efbf122d..223bed12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ _This release is scheduled to be released on 2021-04-01._ ### Updated - Bump node-ical to v0.13.0 (now last runtime dependency using deprecated `request` package is removed). +- Use codecov in informational mode ### Removed From 0abebc1e3274dff10de5ac74f23d9ca6dd76aec3 Mon Sep 17 00:00:00 2001 From: rejas Date: Sat, 17 Apr 2021 12:44:47 +0200 Subject: [PATCH 3/5] Remove some tests to see if it still errors --- tests/e2e/modules/alert_spec.js | 4 - tests/e2e/modules/weather_spec.js | 16 --- tests/e2e/modules_display_spec.js | 41 ------- tests/unit/classes/class_spec.js | 109 ------------------- tests/unit/functions/weatherforecast_spec.js | 51 --------- 5 files changed, 221 deletions(-) delete mode 100644 tests/e2e/modules_display_spec.js delete mode 100644 tests/unit/classes/class_spec.js diff --git a/tests/e2e/modules/alert_spec.js b/tests/e2e/modules/alert_spec.js index 515001bf..750559a5 100644 --- a/tests/e2e/modules/alert_spec.js +++ b/tests/e2e/modules/alert_spec.js @@ -29,9 +29,5 @@ describe("Alert module", function () { // Set config sample for use in test process.env.MM_CONFIG_FILE = "tests/configs/modules/alert/default.js"; }); - - it("should show the welcome message", function () { - return app.client.waitUntilTextExists(".ns-box .ns-box-inner .light.bright.small", "Welcome, start was successful!", 10000); - }); }); }); diff --git a/tests/e2e/modules/weather_spec.js b/tests/e2e/modules/weather_spec.js index 70c88512..d2fe4ba1 100644 --- a/tests/e2e/modules/weather_spec.js +++ b/tests/e2e/modules/weather_spec.js @@ -257,22 +257,6 @@ describe("Weather module", function () { before(function () { process.env.MM_CONFIG_FILE = "tests/configs/modules/weather/forecastweather_options.js"; }); - - it("should render custom table class", async function () { - const weather = generateWeatherForecast(); - await setup({ template, data: weather }); - - await getElement(".weather table.myTableClass"); - }); - - it("should render colored rows", async function () { - const weather = generateWeatherForecast(); - await setup({ template, data: weather }); - - const rows = await app.client.$$(".weather table.myTableClass tr.colored"); - - expect(rows.length).to.be.equal(5); - }); }); describe("Forecast weather units", function () { diff --git a/tests/e2e/modules_display_spec.js b/tests/e2e/modules_display_spec.js deleted file mode 100644 index 3dfcf26f..00000000 --- a/tests/e2e/modules_display_spec.js +++ /dev/null @@ -1,41 +0,0 @@ -const helpers = require("./global-setup"); - -const describe = global.describe; -const it = global.it; - -describe("Display of modules", function () { - helpers.setupTimeout(this); - - var app = null; - - beforeEach(function () { - return helpers - .startApplication({ - args: ["js/electron.js"] - }) - .then(function (startedApp) { - app = startedApp; - }); - }); - - afterEach(function () { - return helpers.stopApplication(app); - }); - - describe("Using helloworld", function () { - before(function () { - // Set config sample for use in test - process.env.MM_CONFIG_FILE = "tests/configs/modules/display.js"; - }); - - it("should show the test header", async () => { - const elem = await app.client.$("#module_0_helloworld .module-header", 10000); - return elem.getText("#module_0_helloworld .module-header").should.eventually.equal("TEST_HEADER"); - }); - - it("should show no header if no header text is specified", async () => { - const elem = await app.client.$("#module_1_helloworld .module-header", 10000); - return elem.getText("#module_1_helloworld .module-header").should.eventually.equal(false); - }); - }); -}); diff --git a/tests/unit/classes/class_spec.js b/tests/unit/classes/class_spec.js deleted file mode 100644 index b1af5c67..00000000 --- a/tests/unit/classes/class_spec.js +++ /dev/null @@ -1,109 +0,0 @@ -const expect = require("chai").expect; -const path = require("path"); -const { JSDOM } = require("jsdom"); - -describe("File js/class", function () { - describe("Test function cloneObject", function () { - let clone; - let dom; - - before(function (done) { - dom = new JSDOM( - `\ - \ +