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

build nimsuggest_testing for local testing #900

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

bung87
Copy link
Contributor

@bung87 bung87 commented Sep 15, 2023

Summary

Make local nimsuggest testing easier by having the nimsuggest tester
build the nimsuggest_testing binary as part of the run.

Details

Previous nimsuggest_testing is built in CI environment which meant it
is not available when running tests locally. Now if tester can't find
the nimsuggest_testing binary, it's built before running any tests.

To test locally, as per the module comments:

When debugging, to run a single test, use for e.g.:
nim r nimsuggest/tester.nim nimsuggest/tests/tsug_accquote.nim

Copy link
Collaborator

@saem saem left a comment

Choose a reason for hiding this comment

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

found an issue with the build check logic, but otherwise this is fine in the interim.

nimsuggest/tester.nim Show resolved Hide resolved
nimsuggest/tester.nim Show resolved Hide resolved
@saem saem added test Add or improve tests tool Improvements to non-compiler tooling labels Sep 15, 2023
@saem saem added this to the Tooling milestone Sep 15, 2023
bung87 and others added 2 commits September 16, 2023 01:56
Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
@saem saem changed the title build nimsuggest_testing before running test, allow run tests locally build nimsuggest_testing for local testing Sep 15, 2023
@saem
Copy link
Collaborator

saem commented Sep 15, 2023

@bung87 have a read of the latest PR title + body.

@saem
Copy link
Collaborator

saem commented Sep 15, 2023

/merge

@github-actions
Copy link

Merge requested by: @saem

Contents after the first section break of the PR description has been removed and preserved below:


Notes for Reviewers

@chore-runner chore-runner bot added this pull request to the merge queue Sep 15, 2023
Merged via the queue into nim-works:devel with commit 13f6803 Sep 15, 2023
18 checks passed
@bung87 bung87 deleted the nimsuggest-tester-locally branch September 15, 2023 19:38
bung87 added a commit to bung87/nimskull that referenced this pull request Sep 16, 2023
<!--- The Pull Request (=PR) message is what will get automatically used
as
the commit message when the PR is merged. Make sure that no line is
longer
than 72 characters -->

## Summary

Make local nimsuggest testing easier by having the nimsuggest `tester`
build the `nimsuggest_testing` binary as part of the run.

## Details

Previous `nimsuggest_testing` is built in CI environment which meant it
is not available when running tests locally. Now if `tester` can't find
the `nimsuggest_testing` binary, it's built before running any tests.

To test locally, as per the module comments:
> When debugging, to run a single test, use for e.g.:
> `nim r nimsuggest/tester.nim nimsuggest/tests/tsug_accquote.nim`

---------

Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
bung87 added a commit to bung87/nimskull that referenced this pull request Sep 23, 2023
<!--- The Pull Request (=PR) message is what will get automatically used
as
the commit message when the PR is merged. Make sure that no line is
longer
than 72 characters -->

## Summary

Make local nimsuggest testing easier by having the nimsuggest `tester`
build the `nimsuggest_testing` binary as part of the run.

## Details

Previous `nimsuggest_testing` is built in CI environment which meant it
is not available when running tests locally. Now if `tester` can't find
the `nimsuggest_testing` binary, it's built before running any tests.

To test locally, as per the module comments:
> When debugging, to run a single test, use for e.g.:
> `nim r nimsuggest/tester.nim nimsuggest/tests/tsug_accquote.nim`

---------

Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Add or improve tests tool Improvements to non-compiler tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants