Skip to content

Comments

Passing tests on Master branch#100

Open
sata-form3 wants to merge 3 commits intonlamirault:masterfrom
sata-form3:sata-fix-tests-master
Open

Passing tests on Master branch#100
sata-form3 wants to merge 3 commits intonlamirault:masterfrom
sata-form3:sata-fix-tests-master

Conversation

@sata-form3
Copy link

@sata-form3 sata-form3 commented Mar 21, 2024

CI pipeline didn't seem to work when I wanted to introduce a change, this PR is to bring back passing tests on Master.

EDIT: Follow up with this would be to enable run tests as a status check for merging PRs

@sata-form3 sata-form3 force-pushed the sata-fix-tests-master branch from c72bf41 to b7bf650 Compare March 21, 2024 17:36
@sata-form3 sata-form3 marked this pull request as draft March 21, 2024 17:38
- Also include report-format for undercover to produce a better output
  and remove warnings around lacking configuration.
- bump Emacs version to 29.1
- Upgrade Actions to newer version that exist for node16 deprecation
- Run tests on Pull Requests

Signed-off-by: Sam Tavakoli <sam.tavakoli@form3.tech>
This reverts commit 891d84c.

gotest.el depends on `go-end-of-defun` in `go-test--get-current-data`.

Without the go-mode dependency we see a warning:

`gotest.el:282:33: Warning: the function ‘go-end-of-defun’ is not
known to be defined.`

And failing test:

Test failed: ((should (string=
"TestFoo|TestBar|Test_Baz" (go-test--get-current-file-tests)))
:form (string= "TestFoo|TestBar|Test_Baz" nil) :value nil
:explanation (arrays-of-different-length 24 3
"TestFoo|TestBar|Test_Baz" "nil" first-mismatch-at 0))

where `go-test--get-current-file-tests` will now return nil instead of
expected values.

By reintroducing the dependency we solve this issue.

Signed-off-by: Sam Tavakoli <sam.tavakoli@form3.tech>
- Emacs 29.1 complained about redefined test cases.
  - Using unique names across tests
- Correct args test

Signed-off-by: Sam Tavakoli <sam.tavakoli@form3.tech>
@sata-form3 sata-form3 force-pushed the sata-fix-tests-master branch from 4209f34 to b388b7b Compare March 21, 2024 17:39
@sata-form3 sata-form3 marked this pull request as ready for review March 21, 2024 17:40
@sata-form3 sata-form3 closed this Mar 21, 2024
@sata-form3 sata-form3 deleted the sata-fix-tests-master branch March 21, 2024 19:46
@sata-form3 sata-form3 restored the sata-fix-tests-master branch March 21, 2024 21:22
@sata-form3 sata-form3 reopened this Mar 21, 2024
@sata-form3
Copy link
Author

sata-form3 commented Apr 2, 2024

@nlamirault Any chance you can review this when you have time? I would like to introduce an extra flag for failfast sata-form3@9a0bff4 but would like to have passing tests on master before I do it.

(require 's)
(require 'f)
(require 'cl-lib)
(require 'go-mode)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add go-mode require back?

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

Successfully merging this pull request may close these issues.

2 participants