Project

General

Profile

« Previous | Next » 

Revision 93dd7360

Added by koszko almost 2 years ago

improve unit testing approach

Unit tests were moved to their own subdirectory.
Fixtures common to many unit tests were moved to test/unit/conftest.py.
A facility to execute scripts in page's global scope was added.
A workaround was employed to present information about errors in injected scripts.
Sample unit tests for regexes in common/patterns.js were added.

View differences:

test/__init__.py
1 1
# SPDX-License-Identifier: CC0-1.0
2
# Copyright (C) 2021 Wojtek Kosior

Also available in: Unified diff