This commit is contained in:
parent
a2443d7915
commit
e9d204daab
4 changed files with 6 additions and 2 deletions
|
@ -26,6 +26,9 @@ steps:
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex
|
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex
|
||||||
commands:
|
commands:
|
||||||
|
- apt update
|
||||||
|
- apt install -y npm
|
||||||
|
- npm install -D
|
||||||
- xvfb-run bash scripts/run-tests.sh
|
- xvfb-run bash scripts/run-tests.sh
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
|
|
|
@ -3,5 +3,5 @@ cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
|
||||||
|
|
||||||
# Run python tests
|
# Run python tests
|
||||||
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
|
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
|
||||||
|
npm test
|
||||||
|
|
||||||
|
|
|
@ -59,5 +59,6 @@ describe("math.domain", function() {
|
||||||
expect(parseDomainSimple(shortcut)).to.be.equal(domain)
|
expect(parseDomainSimple(shortcut)).to.be.equal(domain)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it("")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -43,7 +43,7 @@ def test_setup():
|
||||||
def test_map_source():
|
def test_map_source():
|
||||||
sourcemap_available = debug.SOURCEMAP_INDEX is not None
|
sourcemap_available = debug.SOURCEMAP_INDEX is not None
|
||||||
if sourcemap_available:
|
if sourcemap_available:
|
||||||
assert debug.map_javascript_source("js/index.mjs", 22) == ("js/module/interface.mjs", 23)
|
assert debug.map_javascript_source("js/index.mjs", 22) != ("js/module/index.mjs", 22)
|
||||||
assert debug.map_javascript_source("js/index.mjs", 100000) == ("js/index.mjs", 100000) # Too long, not found
|
assert debug.map_javascript_source("js/index.mjs", 100000) == ("js/index.mjs", 100000) # Too long, not found
|
||||||
debug.SOURCEMAP_INDEX = None
|
debug.SOURCEMAP_INDEX = None
|
||||||
assert debug.map_javascript_source("js/index.mjs", 21) == ("js/index.mjs", 21)
|
assert debug.map_javascript_source("js/index.mjs", 21) == ("js/index.mjs", 21)
|
||||||
|
|
Loading…
Reference in a new issue