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

Tests not running after 1st save (or 1st fail) #201

Open
lalarsson opened this issue Aug 7, 2018 · 8 comments
Open

Tests not running after 1st save (or 1st fail) #201

lalarsson opened this issue Aug 7, 2018 · 8 comments

Comments

@lalarsson
Copy link

lalarsson commented Aug 7, 2018

Hi!
TLDR; tests won't run again anymore :(
Thanks for your awesome work! Sadly I bring thee a regression (previous -> #144, #149, #70, #154, #57).

As seen in the logs nothing happens after the first fail(in this case). It do seem to have something with watcher cycles? It's as if the test execution is forgotten.

.realize.yaml

settings:
    legacy:
        force: false
        interval: 0ms
server:
  status: true
  open: true
  port: 5002
  host: localhost
schema:
- name:api
  path: .
  commands:
    clean:
      status: true
    vet:
      status: true
      method: go vet ./...
    test:
      status: true
      method: go test ./...
    install:
      status: true
      method: dep ensure
  watcher:
    extensions:
    - go
    paths:
    - /src
    ignored_paths:
    - ./.git
    - ./.realize
    - ./vendor
    - ./node_modules
    - ./bin
    - ./.serverless

Logs:

[00:20:16][API] : Test there are some errors in : api/hello
2018/08/08 00:20:16 hello
--- FAIL: TestHandler (0.00s)
	main_test.go:14:
			Error Trace:	main_test.go:14
			Error:      	Not equal:
			            	expected: 3
			            	actual  : 0
			Test:       	TestHandler
FAIL
FAIL	api/src/hello	0.016s
exit status 1
[00:20:16][API] : Watching 4 file/s 3 folder/s
[00:20:16][API] : Install started
[00:20:17][API] : Install completed in 0.341 s
[00:20:17][API] : Build started
[00:20:18][API] : Build completed in 1.617 s
[00:20:20][API] : GO changed api/src/world/main_test.go
[00:20:20][API] : Install started
[00:20:21][API] : Install completed in 0.455 s
[00:20:21][API] : Build started
[00:20:22][API] : Build completed in 1.725 s

@francisdb
Copy link

same issue here, could this be related to the usage of go 1.1 modules?

@bdtomlin
Copy link

I'm having the same issue as #149, which is apparently related to this. The first save is the only one that triggers a reload. This issue happens with both Goland(Jetbrains) and Vim.

It seems to be related to fsnotify because it works if I set force to true under legacy:

settings:
  legacy:
    force: true

@sagarjauhari
Copy link

Facing the same issue with/without 'legacy force: true'

@sagarjauhari
Copy link

I don't think this is related to #149 because the tests don't run even if another file gets updated.

@sagarjauhari
Copy link

Hi, any update about this?

@sethamclean
Copy link

Also using go 1.11 modules and experiencing the same issue. This issue has been open almost two months without a reply so...

@jwendel
Copy link

jwendel commented Nov 12, 2018

I've created a hack of a pull request to make tests work again here. Not ideal, but it at least got them running for me. See pull request #226

@micwoj92
Copy link

Does this work now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants