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 doc #1422

Merged
merged 4 commits into from
Jun 6, 2024
Merged

update testing doc #1422

merged 4 commits into from
Jun 6, 2024

Conversation

amtoine
Copy link
Member

@amtoine amtoine commented May 29, 2024

std testing has been deprecated -hidden to the users to be more precise- for quite some time now...

this PR updates the testing documentation page to not nudge people to have a look at that hiddent module, especially because downloading testing.nu manually and putting it anywhere is not a very good workflow 😕

i removed all mentions to testing.nu and wrote a new section to run tests, which is split into two parts

  • running tests from a Nupm package
  • running tests for standalon modules or scripts

- `use std assert` at the start
- consistently call `assert ...` instead of `std assert ...`
- split "command" and output blocks
- merge `span` and `end` into `span` for the last example
@amtoine amtoine marked this pull request as ready for review May 29, 2024 20:48
@fdncred
Copy link
Collaborator

fdncred commented Jun 6, 2024

Thanks

@fdncred fdncred merged commit 623b040 into nushell:main Jun 6, 2024
2 checks passed
@amtoine amtoine deleted the update-testing-doc branch June 6, 2024 17:46
maxim-uvarov pushed a commit to maxim-uvarov/nushell.github.io that referenced this pull request Jun 7, 2024
* remove mentions to hidden `std testing` module

* minor fixes

- `use std assert` at the start
- consistently call `assert ...` instead of `std assert ...`
- split "command" and output blocks
- merge `span` and `end` into `span` for the last example

* write a section to run tests

* fix spelling
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.

None yet

2 participants