Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Test cases failing in dart_frog_cli while running dart test(OS errors) #1149

Open
dhruvpatidar359 opened this issue Nov 15, 2023 · 0 comments
Labels
bug Something isn't working as expected p1 High-priority issues at the top of the work list

Comments

@dhruvpatidar359
Copy link

Description

I am using Windows 10 , i have run dart test command in dart_frog_cli as the contributing.md says before doing any contribution . But some of the test cases fails in this .

Steps To Reproduce

  1. Go to 'dart_frog_cli'
  2. Run Command :- dart test
  3. See error

Expected Behavior

Test cases should pass

Screenshots

Errors :

PS C:\Users\dhruv\Desktop\opensource\dart_frogmine\packages> cd dart_frog_cli
PS C:\Users\dhruv\Desktop\opensource\dart_frogmine\packages\dart_frog_cli> dart test
00:02 +8: test\src\commands\daemon\daemon_test.dart: dart_frog daemon runs with default value                                                      [
{"event":"daemon.ready","params":{"version":"0.0.1","processId":2172}}]
✓ Creating route /user/[id]/posts/[post_id]/comments (4ms)
✓ Creating middleware user/[id]/posts/[post_id]/comments (0ms)
00:03 +46 -1: test\src\command_runner_test.dart: DartFrogCommandRunner can be instantiated without any explicit parameters [E]
  FileSystemException: Error retrieving socket type, path = '' (OS Error: The handle is invalid.
  , errno = 6)
  dart:io                                              stdin
  package:dart_frog_cli/src/command_runner.dart 40:29  new DartFrogCommandRunner
  test\src\command_runner_test.dart 88:29              main.<fn>.<fn>
  

To run this test again: C:\flutter\bin\cache\dart-sdk\bin\dart.exe test test\src\command_runner_test.dart -p vm --plain-name "DartFrogCommandRunner 
can be instantiated without any explicit parameters"
00:03 +62 -2: test\src\daemon\daemon_server_test.dart: DaemonServer can be instantiated [E]
  FileSystemException: Error retrieving socket type, path = '' (OS Error: The handle is invalid.
  , errno = 6)
  dart:io                                                    stdin
  package:dart_frog_cli/src/daemon/connection.dart 39:31     new DaemonStdioConnection
  package:dart_frog_cli/src/daemon/daemon_server.dart 27:36  new DaemonServer
  test\src\daemon\daemon_server_test.dart 63:14              main.<fn>.<fn>


To run this test again: C:\flutter\bin\cache\dart-sdk\bin\dart.exe test test\src\daemon\daemon_server_test.dart -p vm --plain-name "DaemonServer can
 be instantiated"
00:06 +210 -3: test\src\dev_server_runner\dev_server_runner_test.dart: DevServerRunner process runtime kills process if error occurs before hot relo
ad is enabled on non-windows [E]
  Expected: empty
    Actual: [['taskkill', '/F', '/T', '/PID', '42']]

  package:matcher                                                expect
  test\src\dev_server_runner\dev_server_runner_test.dart 987:11  main.<fn>.<fn>.<fn>


To run this test again: C:\flutter\bin\cache\dart-sdk\bin\dart.exe test test\src\dev_server_runner\dev_server_runner_test.dart -p vm --plain-name "D
evServerRunner process runtime kills process if error occurs before hot reload is enabled on non-windows"
00:06 +210 -4: test\src\dev_server_runner\dev_server_runner_test.dart: DevServerRunner process runtime Does not kill process if a warning occurs bef
ore hot reload is enabled [E]
  type 'Null' is not a subtype of type 'Stream<ProcessSignal>'
  test\src\dev_server_runner\dev_server_runner_test.dart 23:7                _MockProcessSignal.watch
  package:dart_frog_cli/src/dev_server_runner/dev_server_runner.dart 273:17  DevServerRunner.start.serve
  ===== asynchronous gap ===========================
  package:dart_frog_cli/src/dev_server_runner/dev_server_runner.dart 342:5   DevServerRunner.start
  ===== asynchronous gap ===========================
  test\src\dev_server_runner\dev_server_runner_test.dart 1020:11             main.<fn>.<fn>.<fn>


To run this test again: C:\flutter\bin\cache\dart-sdk\bin\dart.exe test test\src\dev_server_runner\dev_server_runner_test.dart -p vm --plain-name "D
evServerRunner process runtime Does not kill process if a warning occurs before hot reload is enabled"
00:06 +210 -5: test\src\dev_server_runner\dev_server_runner_test.dart: DevServerRunner process runtime kills process with message when Dart VM is al
ready in use [E]
  Expected: empty
    Actual: [['taskkill', '/F', '/T', '/PID', '42']]
  Should not run the serve process.

  package:matcher                                                 expect
  test\src\dev_server_runner\dev_server_runner_test.dart 1074:11  main.<fn>.<fn>.<fn>


To run this test again: C:\flutter\bin\cache\dart-sdk\bin\dart.exe test test\src\dev_server_runner\dev_server_runner_test.dart -p vm --plain-name "D
evServerRunner process runtime kills process with message when Dart VM is already in use"
00:06 +210 -5: Some tests failed.

Consider enabling the flag chain-stack-traces to receive more detailed exceptions.
For example, 'dart test --chain-stack-traces'.

image

Additional Context

OS : Windows 10

@dhruvpatidar359 dhruvpatidar359 added the bug Something isn't working as expected label Nov 15, 2023
@tomarra tomarra added the p1 High-priority issues at the top of the work list label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected p1 High-priority issues at the top of the work list
Projects
Status: Backlog
Development

No branches or pull requests

2 participants