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

Update testing.md #89

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Update testing.md #89

merged 1 commit into from
Nov 2, 2024

Conversation

jasalt
Copy link
Contributor

@jasalt jasalt commented Nov 2, 2024

First paragraph had reference to possibly deprecated info.

Second paragraph was definitely out of date looking the current sources. Rewrote it also so it is at least slightly more correct and without typos while some improvement could be made in it's usage with REPL etc.

First paragraph had reference to possibly deprecated info.

Second paragraph was definitely out of date looking the [current sources](https://github.com/phel-lang/phel-lang/blob/001699edd91c417c646d45b8ac46d3128de4a2d8/src/phel/test.phel#L327). Rewrote it also so it is at least slightly more correct and without typos while some improvement could be made in it's usage with REPL etc.
@jasalt
Copy link
Contributor Author

jasalt commented Nov 2, 2024

On second note, while testing run-tests in REPL session running a test declared in current file ns I found it weirdly stateful, incrementing reported tests passed count every time after running it again during the session.

Not sure if it's a bug or if it's unfinished or something, but haven't faced similar behavior with Clojure.

@Chemaclass
Copy link
Member

Nice catch. This was not up-to-date, as this phel function was created mainly to be used on the TestCommand which execute the phel tests: bin/phel test

Screenshot 2024-11-02 at 22 26 14

As you can see, the first argument is definitely a hash-map of options and then the namespaces, your suggestion is correct.

Copy link
Member

@Chemaclass Chemaclass left a comment

Choose a reason for hiding this comment

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

Thanks!

@Chemaclass Chemaclass merged commit 8960eed into phel-lang:master Nov 2, 2024
1 check passed
@Chemaclass Chemaclass added bug Something isn't working documentation Improvements or additions to documentation labels Nov 2, 2024
@jasalt jasalt deleted the patch-3 branch November 3, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants