@camperaid/watest 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.watestrc.js CHANGED
@@ -53,6 +53,12 @@ const cfg = {
53
53
  * Servicer module.
54
54
  */
55
55
  servicer: process.env.WATEST_SERVICER_MODULE,
56
+
57
+ /**
58
+ * Regular expression defining a file name pattern
59
+ * to exclude from the tests.
60
+ */
61
+ ignore_pattern: process.env.WATEST_IGNORE_PATTERN,
56
62
  };
57
63
 
58
64
  module.exports = cfg;
package/core/series.js CHANGED
@@ -878,7 +878,11 @@ class Series {
878
878
  getTestFileList(folder) {
879
879
  return fs
880
880
  .readdirSync(path.join(root_dir, folder))
881
- .filter(n => n.startsWith('t_'));
881
+ .filter(
882
+ n =>
883
+ n.startsWith('t_') &&
884
+ (!settings.ignorePattern || !settings.ignorePattern.test(n))
885
+ );
882
886
  }
883
887
 
884
888
  performInChildProcess({ name, path, loader, webdriver }) {
package/core/settings.js CHANGED
@@ -46,6 +46,10 @@ class Settings {
46
46
  return this._invocation;
47
47
  }
48
48
 
49
+ get ignorePattern() {
50
+ return rc.ignore_pattern && new RegExp(rc.ignore_pattern);
51
+ }
52
+
49
53
  get debunkLimit() {
50
54
  return parseInt(rc.debunk_limit) || 5;
51
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camperaid/watest",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Web Application Testsuite",
5
5
  "engines": {
6
6
  "node": ">=14.15.1"