# support \-\-emit in 'test' command · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/03f66825d6b6922da250cdb99c2996455541e0f9)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 03f66825d6b6922da250cdb99c2996455541e0f9

Requested commit: 03f66825d6b6922da250cdb99c2996455541e0f9

Commit: 03f66825d6b6922da250cdb99c2996455541e0f9

Tree: 43d1cf7b4ba7d0215f5ddb7f943dcfc50f6a9434

Author: Ben Noordhuis

Committer: Ben Noordhuis

## Message

```
support --emit in 'test' command

Support the `--emit` switch in `zig --emit asm test file.zig`.

The command fails because no tests run (no executable is created) but
it emits the requested file.  That seems like a good tradeoff.

```

## Parents

- [f1c56f7f225f2f3054abd8c9e6330a0f1e20b2a6](https://git.cafe/gitcafe/zig/commit/f1c56f7f225f2f3054abd8c9e6330a0f1e20b2a6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/03f66825d6b6922da250cdb99c2996455541e0f9?format=markdown)
