odin-lang / odin-lang.org

http://odin-lang.org
22 stars 81 forks source link

Add overview docs for cli and tests #154

Closed Nezteb closed 6 months ago

Nezteb commented 10 months ago

There was a conversation in the Discord about some weird behavior where Odin files ending in _test.odin aren't compiled unless you are running odin test. In my case, I had a file named generate_test.odin that was normal application code that generated tests, and this file was being ignored by odin build and odin check. Once I renamed the file to not end in _test.odin, things worked fine.

Then I noticed that there actually was no mention of unit tests in the overview, so I added that and added a note about the _test.odin thing at the end of the new section.

I also opted to add a note about the --help flag for Odin subcommands. 😄

Kelimion commented 9 months ago

@Tetralux, what's the state of this, please?