This commit is contained in:
parent
e2841c0129
commit
1c7e9d627d
4 changed files with 11 additions and 5 deletions
|
@ -20,6 +20,6 @@
|
||||||
"recursive": true,
|
"recursive": true,
|
||||||
"require": [
|
"require": [
|
||||||
"esm",
|
"esm",
|
||||||
"./tests/js/hooks.mjs"
|
"./test/hooks.mjs"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -19,7 +19,7 @@ import * as fs from "./mock/fs.mjs";
|
||||||
import Qt from "./mock/qt.mjs";
|
import Qt from "./mock/qt.mjs";
|
||||||
import { MockHelper } from "./mock/helper.mjs";
|
import { MockHelper } from "./mock/helper.mjs";
|
||||||
import { MockLatex } from "./mock/latex.mjs";
|
import { MockLatex } from "./mock/latex.mjs";
|
||||||
import Modules from "../../LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs";
|
import Modules from "../src/module/index.mjs";
|
||||||
|
|
||||||
function setup() {
|
function setup() {
|
||||||
globalThis.Helper = new MockHelper()
|
globalThis.Helper = new MockHelper()
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
import { describe, it } from "mocha"
|
import { describe, it } from "mocha"
|
||||||
import { expect } from "chai"
|
import { expect } from "chai"
|
||||||
|
|
||||||
import { Domain, parseDomainSimple } from "../../../LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs"
|
import { Domain, parseDomainSimple } from "../../src/math/domain.mjs"
|
||||||
|
|
||||||
describe("math.domain", function() {
|
describe("math.domain", function() {
|
||||||
describe("#parseDomainSimple", function() {
|
describe("#parseDomainSimple", function() {
|
||||||
|
|
|
@ -6,6 +6,12 @@ bash scripts/build.sh
|
||||||
|
|
||||||
# Run python tests
|
# Run python tests
|
||||||
cp -r runtime-pyside6/tests build/runtime-pyside6
|
cp -r runtime-pyside6/tests build/runtime-pyside6
|
||||||
|
cp -r ci CHANGELOG.md build/runtime-pyside6
|
||||||
|
cd build/runtime-pyside6 || exit 1
|
||||||
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
|
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
|
||||||
|
cd ../../
|
||||||
|
|
||||||
|
# Run js tests
|
||||||
|
cd common
|
||||||
npm test
|
npm test
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue