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

Running basic tests for a new app #52

Closed
adwelly opened this issue Oct 24, 2023 · 2 comments
Closed

Running basic tests for a new app #52

adwelly opened this issue Oct 24, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@adwelly
Copy link

adwelly commented Oct 24, 2023

Creating an app with the command:

$ clojure -Tnew app :name myusername/mynewapp

Seems to produce all the boilerplate and directories that are needed to get going but there's little guidance on executing the basic (failing) tests that are generated at the same time which is a problem for newcomers to the concept of test-runners. Reading around suggests that the command

$ cd mynewapp
$ clj -X:test

should be sufficient to kick things off but this produces the error message:

"No function found on command line or in :exec-fn"

What's the right way to execute the tests? Could something be added to the README?

@seancorfield
Copy link
Owner

Each generated project's README had instructions on what to do:

$ clojure -T:build test

But I'll update the parent repo to make it clear that the generated README has all the details on running the project, running tests, and building it.

@adwelly
Copy link
Author

adwelly commented Oct 24, 2023

Thanks. The one place I didn't think to look. Doh!

@seancorfield seancorfield self-assigned this Oct 24, 2023
@seancorfield seancorfield added the documentation Improvements or additions to documentation label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants