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

Passing tests on Master branch #100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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 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 <[email protected]>
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 <[email protected]>
- Emacs 29.1 complained about redefined test cases.
  - Using unique names across tests
- Correct args test

Signed-off-by: Sam Tavakoli <[email protected]>
@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.

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.

1 participant