Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
run: bun run typecheck

- name: Test
run: bun test
run: bun test ./tests

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep GUI unit tests in CI by avoiding path-scoped bun test

This change narrows the CI command from bun test to bun test ./tests, which drops the code-oz-gui/tests/unit/* suite from the default test workflow with no replacement job in .github/workflows/ (I checked both test.yml and release.yml). Bun’s own CLI contract is bun test [<patterns>] (“run all matching test files”), so passing ./tests intentionally filters to that subtree; in this repo that reduces coverage from 3395 to 3390 passing tests and allows GUI regressions to merge undetected.

Useful? React with 👍 / 👎.

env:
CODE_OZ_LIVE_PROVIDER_TESTS: ""
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AI agents are fast. `code-oz` makes their work auditable. It is for risky repos,
[![Homebrew](https://img.shields.io/badge/Homebrew-omerakben%2Fcode--oz-orange)](https://github.com/omerakben/homebrew-code-oz)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey)](https://github.com/omerakben/code-oz/releases)
[![Tests passing](https://img.shields.io/badge/tests-3395%20passing-brightgreen)](https://github.com/omerakben/code-oz/actions/workflows/test.yml)
[![Tests passing](https://img.shields.io/badge/tests-3390%20passing-brightgreen)](https://github.com/omerakben/code-oz/actions/workflows/test.yml)

> **macOS note:** code-oz binaries are not yet Apple-Developer-signed (signing + notarization deferred to v0.x stable). Gatekeeper may prompt on first launch; the install script applies `xattr -d com.apple.quarantine` as a workaround, and `brew install` handles this automatically.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"code-oz": "npm-wrapper/index.cjs"
},
"scripts": {
"test": "bun test",
"test:watch": "bun test --watch",
"test": "bun test ./tests",
"test:watch": "bun test ./tests --watch",
"dev": "bun run src/cli.ts",
"build:binary": "bun build --compile --target=bun src/cli.ts --outfile dist/code-oz",
"build:binaries": "bun run scripts/build-binaries.ts",
Expand Down
2 changes: 1 addition & 1 deletion tests/demo/failure-gates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// re-implementation.

import { describe, test, expect, beforeEach, afterEach } from 'bun:test'
import { mkdtemp, mkdir, rm, writeFile, appendFile } from 'node:fs/promises'
import { mkdtemp, mkdir, rm, writeFile } from 'node:fs/promises'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The import of realpath from node:fs/promises on line 27 is redundant with this import statement. They should be consolidated into a single import from node:fs/promises to improve code clarity and maintainability. Please remember to remove line 27 after applying this change.

Suggested change
import { mkdtemp, mkdir, rm, writeFile } from 'node:fs/promises'
import { mkdtemp, mkdir, rm, writeFile, realpath } from 'node:fs/promises'

import { tmpdir } from 'node:os'
import { join, resolve as resolvePath } from 'node:path'
import { realpath } from 'node:fs/promises'
Expand Down
Loading