Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

Erro para executar o teste

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
 10% building modules 3/3 modules 0 activeopenssl config failed: error:02001003:system library:fopen:No such process
Date: 2019-10-08T17:27:09.778Z
Hash: a7336ddd4d5360076272
Time: 23543ms
chunk {home-home-module} home-home-module.js, home-home-module.js.map (home-home-module) 40 kB  [rendered]
chunk {main} main.js, main.js.map (main) 187 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 240 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 8 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 203 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 4.45 MB [initial] [rendered]
i 「wdm」: Compiled successfully.
[14:27:10] I/update - chromedriver: file exists D:\Alura\Testes e2e com Protractor\alurapic\node_modules\protractor\node_modules\webdriver-manager\selenium\chromedriver_2.46.zip
[14:27:10] I/update - chromedriver: unzipping chromedriver_2.46.zip
[14:27:11] I/update - chromedriver: chromedriver_2.46.exe up to date
events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at ChildProcess.target._send (internal/child_process.js:762:20)
    at ChildProcess.target.send (internal/child_process.js:634:19)
    at Observable.rxjs_1.Observable.obs [as _subscribe] (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\@angular-devkit\build-angular\src\utils\run-module-as-observable-fork.js:57:23)
    at Observable._trySubscribe (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Observable.js:44:25)
    at Observable.subscribe (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Observable.js:30:22)
    at D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\util\subscribeTo.js:22:31
    at Object.subscribeToResult (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\util\subscribeToResult.js:10:45)
    at MergeMapSubscriber._innerSub (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\operators\mergeMap.js:82:29)
    at MergeMapSubscriber._tryNext (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\operators\mergeMap.js:76:14)
    at MergeMapSubscriber._next (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\operators\mergeMap.js:59:18)
    at MergeMapSubscriber.Subscriber.next (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Subscriber.js:66:18)
    at MergeMapSubscriber.notifyNext (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
    at InnerSubscriber._next (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
    at InnerSubscriber.Subscriber.next (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Subscriber.js:66:18)
    at D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\util\subscribeToPromise.js:7:24
    at process._tickCallback (internal/process/next_tick.js:68:7)
Emitted 'error' event at:
    at process.nextTick (internal/child_process.js:766:39)
    at process._tickCallback (internal/process/next_tick.js:61:11)
3 respostas

Fala ai Douglas, tudo bem? Parece ser um erro causado pelo Angular CLI, sugiro tentar atualizá-lo para a versão mais recente e tentar rodar os testes novamente.

Espero ter ajudado.

Date: 2019-10-09T00:01:56.933Z Hash: 29b7b70f46e3bbe6c316 Time: 4746ms chunk {main} main.js, main.js.map (main) 354 kB [entry] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 354 kB [entry] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered] chunk {styles} styles.js, styles.js.map (styles) 559 kB [entry] [rendered] chunk {vendor} vendor.js, vendor.js.map (vendor) 5.5 kB [initial] [rendered]

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.3.0 but 3.6.3 was found instead. i 「wdm」: Failed to compile. [21:01:57] I/update - chromedriver: file exists D:\Alura\Testes e2e com Protractor\alurapic\node_modules\webdriver-manager\selenium\chromedriver_77.0.3865.40.zip [21:01:57] I/update - chromedriver: unzipping chromedriver_77.0.3865.40.zip [21:01:57] I/update - chromedriver: chromedriver_77.0.3865.40.exe up to date events.js:174 throw er; // Unhandled 'error' event ^

Error: write EPIPE at ChildProcess.target.send (internal/childprocess.js:762:20) at ChildProcess.target.send (internal/child_process.js:634:19) at Observable.rxjs_1.Observable.obs [as subscribe] (D:\Alura\Testes e2e com Protractor\alurapic\nodemodules@angular-devkit\build-angular\src\utils\run-module-as-observable-fork.js:57:23) at Observable.trySubscribe (D:\Alura\Testes e2e com Protractor\alurapic\nodemodules\rxjs\internal\Observable.js:44:25) at Observable.subscribe (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Observable.js:30:22) at Object.subscribeToResult (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\util\subscribeToResult.js:12:23) at MergeMapSubscriber.innerSub (D:\Alura\Testes e2e com Protractor\alurapic\nodemodules\rxjs\internal\operators\mergeMap.js:82:29) at MergeMapSubscriber.tryNext (D:\Alura\Testes e2e com Protractor\alurapic\nodemodules\rxjs\internal\operators\mergeMap.js:76:14) at MergeMapSubscriber.next (D:\Alura\Testes e2e com Protractor\alurapic\nodemodules\rxjs\internal\operators\mergeMap.js:59:18) at MergeMapSubscriber.Subscriber.next (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Subscriber.js:66:18) at MergeMapSubscriber.notifyNext (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\operators\mergeMap.js:92:26) at InnerSubscriber.next (D:\Alura\Testes e2e com Protractor\alurapic\nodemodules\rxjs\internal\InnerSubscriber.js:28:21) at InnerSubscriber.Subscriber.next (D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\Subscriber.js:66:18) at D:\Alura\Testes e2e com Protractor\alurapic\node_modules\rxjs\internal\util\subscribeToPromise.js:7:24

Tente reinstalar as bibliotecas do projeto:

  1. Remova a pasta node_modules.
  2. Remova os arquivos package-lock.json e yarn.lock (caso existam).
  3. Realiza a instalação das bibliotecas: npm i.
  4. Tente rodar os testes novamente.

Caso não dê certo, vamos nos falando.

Espero ter ajudado.