Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Unable to run tests in container #11878

@oliversalzburg

Description

@oliversalzburg

Bug, enhancement request, or proposal:

It is unclear how to run the test suite in certain environments.

CodePen and steps to reproduce the issue:

Detailed Reproduction Steps:

  1. Run npm run test:full.

What is the expected behavior?

The test suite is being run and, ideally, passes.

What is the current behavior?

The process results in errors, never completes and also does not run any tests:

node@cd2b6e6d925b:/workspaces/material$ npm run test:full

> [email protected] test:full /workspaces/material
> gulp karma

[11:51:53] Using gulpfile /workspaces/material/gulpfile.js
[11:51:53] Starting 'build-scss'...
[11:51:53] Building css files...
[11:51:53] Starting 'build-js'...
[11:51:53] building js files...
[11:52:19] Finished 'build-scss' after 26 s
[11:52:24] Finished 'build-js' after 31 s
[11:52:24] Starting 'build'...
[11:52:24] Finished 'build' after 38 μs
[11:52:24] Starting 'karma'...
[11:52:24] Running unit tests on unminified source.
13 03 2020 11:52:25.709:WARN [filelist]: All files matched by "/workspaces/material/src/**/*.spec.js" were excluded or matched by prior matchers.
13 03 2020 11:52:25.823:WARN [karma]: No captured browser, open http://localhost:9876/
13 03 2020 11:52:25.956:ERROR [launcher]: No binary for Chrome browser on your platform.
  Please, set "CHROME_BIN" env variable.
13 03 2020 11:52:35.937:WARN [launcher]: Firefox have not captured in 10000 ms, killing.
13 03 2020 11:52:37.938:WARN [launcher]: Firefox was not killed in 2000 ms, sending SIGKILL.
13 03 2020 11:52:39.938:WARN [launcher]: Firefox was not killed by SIGKILL in 2000 ms, continuing.

What is the use-case or motivation for changing an existing behavior?

Being able to run the test suite to validate code changes.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.7
  • AngularJS Material: 1.1.22
  • OS: Windows
  • Browsers:

I commonly observe this when trying to run tests in a DevContainer, per #11844

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions