"test:automation-by-name": "node ./nightwatch.js -e local --suiteRetries 1 \
--reporter ./client/tests/automation/html-reporter.js --test client/tests/automation/test/cards.js \
--testcase 'Card Order.*'",
这里的问题是测试名称是136个字符,所以regex它要容易得多(而且不容易出错)。但当我尝试以上操作时,我会得到:
Error: "Card Order.*" is not a valid testcase in the current test suite.
但我确实有与这个名字匹配的测试:
$ cat client/tests/automation/test/cards.js | grep 'Card Order'
'Card Order and Content is Correct - [redacted super long name]': function (client, done) {
'Card Order, Content is Correct [redacted]': function (
'Card Order and Content is Correct - [redacted]': function (client, done) {
'Card Order and Content is Correct - [redacted]': function (client, done) {
'Card Order and Content is Correct - [redacted]': function (
有没有办法将通配符与此一起使用
testcase
arg?这个
docs
不要讨论它。