Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Tests run twice #14

Open
tobiassjosten opened this issue Jun 28, 2014 · 0 comments
Open

Tests run twice #14

tobiassjosten opened this issue Jun 28, 2014 · 0 comments
Labels

Comments

@tobiassjosten
Copy link

Raising a new issue for this, because #6 seems to happen because of Spotlight and I'm experiencing the same problem on Ubuntu 14.04.

I have two files: main.go and main_test.go, as well as a LICENSE and README.md file and a .git directory. Originally I thought my tests ran twice because Vim saves a swap file (filename~) but it turns out I have that option disabled.

This is the output I get from saving files with Vim:

$ looper --debug
Looper 0.2.3 is watching your files
Type help for help.

Debug mode enabled.

Watching path ./
Detected new file .//main.gz~
Detected new file .//main.go
Detected file modification .//main.go
go test ./.
ok      _/home/tobias/projects/chaps    0.002s
PASS (0.46 seconds)
go test ./.
ok      _/home/tobias/projects/chaps    0.002s
PASS (0.49 seconds)

This is the output I get from saving files with Gedit (tests only run once):

$ looper --debug
Looper 0.2.3 is watching your files
Type help for help.

Debug mode enabled.

Watching path ./
Detected new file .//.goutputstream-AAL7HX
Detected file modification .//.goutputstream-AAL7HX
Detected new file .//main.go~
Detected new file .//main.go
go test ./.
ok      _/home/tobias/projects/chaps    0.004s
PASS (0.51 seconds)

This is the output I get from saving files with nano:

$ looper --debug
Looper 0.2.3 is watching your files
Type help for help.

Debug mode enabled.

Watching path ./
Detected file modification .//main.go
Detected file modification .//main.go
go test ./.
ok      _/home/tobias/projects/chaps    0.005s
PASS (0.45 seconds)
go test ./.
ok      _/home/tobias/projects/chaps    0.002s
PASS (0.45 seconds)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants