วัตถุประสงค์: ฉันต้องการเรียกใช้สคริปต์โหนดอื่นเสมอ ไม่ว่าการทดสอบไม้โปรแทรกเตอร์จะผ่านการทดสอบทั้งหมดหรือไม่ก็ตาม เพื่อให้ง่ายขึ้นฉันใช้คำสั่งต่อไปนี้:
protractor tests/protractor-config.js ; npm run uitest
ปัญหา: ผลลัพธ์ของคำสั่งด้านบนจะเป็น:
$ [email protected] e2e E:\IRIS\IRIS\Iris.Cloud\Iris.Web.Portal
$ protractor tests/protractor-config.js ";" "npm" "run" "uitests"
Usage: protractor [configFile] [options]
configFile defaults to protractor.conf.js
The [options] object will override values from the config file.
See the reference config for a full list of options.
ความเข้าใจ: ฉันคิดว่าไม้โปรแทรกเตอร์ CLI จัดการอัฒภาคไม่ถูกต้อง เมื่อฉันพยายาม
protractor tests/protractor-config.js && npm run uitest
มันทำงานได้ตามที่คาดไว้
การกำหนดค่าของฉัน ฉันใช้ [email protected]
มีใครเคยเจอปัญหามาก่อนบ้าง. ขอบคุณ!