apache / cordova-test-platform Goto Github PK
View Code? Open in Web Editor NEWApache cordova
License: Apache License 2.0
Apache cordova
License: Apache License 2.0
Windows, Linux, macOS, simple npm test
https://github.com/apache/cordova-test-platform/tree/master/src/cordova has several files besides Api.js that are not described anywhere:
build, clean, log, run, version, version.bat
... but defined in Api.js:
cordova-test-platform/src/cordova/Api.js
Lines 77 to 81 in 4d2212c
Optional? Obsolete?
> [email protected] test E:\Projects\Cordova\cordova-test-platform
> npm run jshint && jasmine
> [email protected] jshint E:\Projects\Cordova\cordova-test-platform
> jshint src && jshint spec
Started
.FFFFFF.Creating Cordova project for cordova-platform-test:
Path: C:\Users\Jan\AppData\Local\Temp\cordova-test-platform-AcBYm0
Name: HelloCordova
...........
Failures:
1) create create project with ascii name, no spaces
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:81:9)
2) create create project with ascii name, and spaces
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:88:9)
3) create create project with unicode name, no spaces
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:95:9)
4) create create project with unicode name, and spaces
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:102:9)
5) create create project with ascii+unicode name, no spaces
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:109:9)
6) create create project with ascii+unicode name, and spaces
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:44:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:51:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:52:70)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:53:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:54:68)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
Message:
Expected false to be true.
Stack:
Error: Expected false to be true.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:55:72)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at createAndBuild (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:62:25)
at UserContext.<anonymous> (E:\Projects\Cordova\cordova-test-platform\spec\create.spec.js:116:9)
19 specs, 6 failures
Finished in 7.306 seconds
https://github.com/apache/cordova-test-platform/blob/master/src/cordova/Api.js vs. https://github.com/apache/cordova-test-platform/blob/master/PlatformRequirements.md
cordova-test-platform/src/cordova/Api.js
Lines 125 to 128 in 4d2212c
vs.
The .requirements must return a promise, resolved with a set of Requirement objects for the current platform.
Returns true
cordova-test-platform/src/cordova/Api.js
Lines 116 to 118 in 4d2212c
vs
.run must return a promise either fulfilled if the package was build and ran successfully, or rejected with a CordovaError.
Returns nothing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.