apache / cordova-paramedic

Apache Cordova - Paramedic
https://cordova.apache.org/
Apache License 2.0
36 stars 53 forks source link

--justBuild vs. output #188

Open janpio opened 5 years ago

janpio commented 5 years ago

When using --justBuild (reasoning see https://github.com/apache/cordova-paramedic/issues/165#issuecomment-508456431) you get output that looks like this:

...
Start building app and running tests at 10:48:57 AM
---------------------------------------------------------
4. Run (Jasmine) tests...
... locally
---------------------------------------------------------
cordova-paramedic: running tests locally
cordova-paramedic: running command cordova build windows --no-telemetry --no-update-notifier  -- --appx=uap --archs=x64
$ cordova build windows --no-telemetry --no-update-notifier  -- --appx=uap --archs=x64
Building project: C:\Users\appveyor\AppData\Local\Temp\1\tmp-3884CQKtbPyiymmj\platforms\windows\CordovaApp.Windows10.jsproj
    Configuration : debug
    Platform      : x64
    Buildflags    : /p:AppxBundle=Never
    MSBuildTools  : C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
buildProject spawn: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild [
  'C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\tmp-3884CQKtbPyiymmj\\platforms\\windows\\CordovaApp.Windows10.jsproj',
  '/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal',
  '/nologo',
  '/p:Configuration=debug',
  '/p:Platform=x64',
  '/p:AppxBundle=Never'
] { stdio: 'inherit' }
  prebuild.js: Patching platform `10`
  - Injected `base.js` reference to `/www/cdvtests/index.html`
  - Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from /www/cdvtests/index.html
  - Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script>)(\s*)/ from /www/cdvtests/index.html
  CordovaApp.Windows10 -> C:\Users\appveyor\AppData\Local\Temp\1\tmp-3884CQKtbPyiymmj\platforms\windows\AppPackages\CordovaApp.Windows10_1.0.0.0_x64_debug_Test\CordovaApp.Windows10_1.0.0.0_x64_debug.appx
---------------------------------------------------------
5. Run Appium tests
...

Of course this doesn't "Run (Jasmine) tests" but just build the app and that's it.

I think the output here should be adapted to e.g. "Build app and consider that a success" or similar.

(https://github.com/apache/cordova-paramedic/pull/173 might make it easier to implement this)