Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
feat: 자동 테스트 기능 추가
fix: 윈도우에서 폴더 생성시 폴더 이름에 특수문자가 포함되어 있을 경우 폴더가 생성되지 않는 버그 수정

Update README.md
Update CHANGELOG.md
Add BOJ-extension-run-test-case.png
  • Loading branch information
dltkdgns00 committed Mar 14, 2024
1 parent 06ab272 commit 22edef5
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 42 deletions.
42 changes: 26 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,72 @@

## [1.0.0] - 2023-08-02

### Added
### Feature Added

- Command: 문제 번호 입력 시 문제 검색
- Command: 문제 번호 입력 시 헤더 자동 생성
- Command: 문제 번호 입력 시 문제 검색 - BOJ: Search Problem
- Command: 문제 번호 입력 시 헤더 자동 생성 - BOJ: Insert Header Comment

## [1.0.1] - 2023-08-02

### Added
### Feature Added

- Command: 문제 번호 입력 시 파일 생성, 문제 검색, 헤더 자동 생성
- Command: 문제 번호 입력 시 파일 생성, 문제 검색, 헤더 자동 생성 - BOJ: Create Problem File

## [1.0.2] - 2023-08-02

### Added
### Feature Added

- 확장 아이콘 추가

## [1.0.3] - 2023-08-03

### Bug Fix
### Bug Fixed

## [1.1.0] - 2023-08-08

### Added
### Feature Added

- Command: Github Action을 위한 workflow.yml 생성 및 Github 푸시
- Command: workflow.yml 생성
- Command: 매뉴얼 열기
- Command: Github Action을 위한 workflow.yml 생성 및 Github 푸시 - BOJ: Push to Github
- Command: workflow.yml 생성 - BOJ: Make Workflow
- Command: 매뉴얼 열기 - BOJ: Show Manual

## [1.1.1] - 2023-08-09

### Bug Fix
### Bug Fixed

- 문제 파일 생성시 문제 이름에 파일 이름으로 사용 할 수 없는 문자가 포함되어 있을 경우 문제 파일이 생성되지 않는 버그 수정
- workflow.yml 버그 수정

## [1.1.2] - 2023-09-15

### Bug Fix
### Bug Fixed

- 문제 파일 생성 및 문제 검색 시 입력과 출력 부분이 제대로 생성되지 않는 버그 수정

## [1.1.3] - 2023-09-15

### Bug Fix
### Bug Fixed

- 문제 파일 생성 및 문제 검색 시 예제 설명 부분과 입,출력 예제가 두 개 이상 있을 경우 제대로 생성되지 않는 버그 수정

## [1.1.4] - 2023-09-15

### Bug Fix
### Bug Fixed

- 문제 검색 및 생성 null 값이 보이는 버그 수정

## [1.1.5] - 2024-02-14

### Bug Fix
### Bug Fixed

- makeWorkflow 마이너 픽스

## [1.2.0] - 2024-03-15

### Feature Added

- Command: 자동 테스트 기능 추가 - BOJ: Run Test Case

### Bug Fixed

- 윈도우에서 폴더 생성시 폴더 이름에 특수문자가 포함되어 있을 경우 폴더가 생성되지 않는 버그 수정
59 changes: 36 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,55 +7,68 @@
![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/dltkdgns00.BOJ-EX)
![License](https://img.shields.io/github/license/dltkdgns00/BOJ-extension)


vscode를 위한 백준 온라인 저지 문제 풀이 확장 프로그램입니다.
백준 온라인 저지를 할 때 편리할법한 기능을 제공합니다.

## 사용법 및 기능

![BOJ-extension](./BOJ-extension.gif)

1. 확장을 설치 후 설정에서 자주 사용하는 언어의 확장자와 본인이 백준 온라인 저지에서 사용하는 아이디를 입력합니다.
2. `Ctrl + Shift + P` or `Cmd + Shift + P` 를 눌러 명령어 창을 엽니다.
3. 커맨드를 입력합니다.
- `BOJ: Create Problem File`
- 백준 온라인 저지 문제 번호를 입력하면 해당 문제의 제목을 파일명으로 하는 파일이 생성되고, 자동으로 헤더가 생성된 후, 문제가 열립니다.
- `BOJ: Show Problem`
- 백준 온라인 저지 문제 번호를 입력하면 해당 문제가 열립니다.
- `BOJ: Insert Header Comment`
- 백준 온라인 저지 문제 번호를 입력하면 해당 파일의 정보를 담은 아름다운 헤더가 생성됩니다.
- `BOJ: Push To Github`
- 현재 워크스페이스에 Github Action을 위한 `workflow.yml`파일을 생성하고 깃허브 레포지토리에 푸시합니다.
- `BOJ: Make workflow`
- Github Action을 위한 `workflow.yml`파일을 생성합니다.
- `BOJ: Show Manual`
- BOJ-extension의 매뉴얼을 엽니다.

## Github Action
- `BOJ: Create Problem File`
- 백준 온라인 저지 문제 번호를 입력하면 해당 문제의 제목을 파일명으로 하는 파일이 생성되고, 자동으로 헤더가 생성된 후, 문제가 열립니다.
- `BOJ: Show Problem`
- 백준 온라인 저지 문제 번호를 입력하면 해당 문제가 열립니다.
- `BOJ: Run Test Case`
- 백준 온라인 저지 문제의 테스트 케이스를 가져와 자동으로 실행하고 채점합니다.
- `BOJ: Insert Header Comment`
- 백준 온라인 저지 문제 번호를 입력하면 해당 파일의 정보를 담은 아름다운 헤더가 생성됩니다.
- `BOJ: Push To Github`
- 현재 워크스페이스에 Github Action을 위한 `workflow.yml`파일을 생성하고 깃허브 레포지토리에 푸시합니다.
- `BOJ: Make workflow`
- Github Action을 위한 `workflow.yml`파일을 생성합니다.
- `BOJ: Show Manual`
- BOJ-extension의 매뉴얼을 엽니다.

## BOJ: Run Test Case

![BOJ-extension-run-test-case](./BOJ-extension-run-test-case.png)

지원 언어: C(gcc), C++(g++), Python(python3), Java(javac), Rust(rustc), JS(node)
※ 각 언어에 상응하는 컴파일러/인터프리터가 설치되어 있어야 작동합니다. JS는 윈도우에서는 지원하지 않습니다.
내부 캐싱 기능이 구현되어 있습니다.
원하시는 언어가 있다면 이슈를 남겨주세요. [BOJ-extension Github Issue](https://github.com/dltkdgns00/BOJ-extension/issues)

## Github Action

BOJ-action은 BOJ-extension을 위한 Github Action을 제공합니다.
BOJ-extension에서 자동으로 생성하는 workflow.yml파일을 사용하면 자신의 Github 레포지토리에 자신이 푼 문제들의 `README.md`파일에 백준 온라인 저지에 제출한 본인의 코드의 성능요약을 추가할 수 있습니다.

## 링크

* [Github repository](https://github.com/dltkdgns00/BOJ-extension)
* [Microsoft Marketplace](https://marketplace.visualstudio.com/items?itemName=dltkdgns00.BOJ-EX)
* [Github Action for BOJ-extension](https://github.com/dltkdgns00/BOJ-action)
- [Github repository](https://github.com/dltkdgns00/BOJ-extension)
- [Microsoft Marketplace](https://marketplace.visualstudio.com/items?itemName=dltkdgns00.BOJ-EX)
- [Github Action for BOJ-extension](https://github.com/dltkdgns00/BOJ-action)

## 라이선스

MIT License

## 개발자

* [dltkdgns00](https://github.com/dltkdgns00)
- [dltkdgns00](https://github.com/dltkdgns00)

### 후원하기

<a href="https://www.buymeacoffee.com/dltkdgns00" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
[![dltkdgns00](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/dltkdgns00)

- 후원하실 때에 메시지에 Github 아이디를 남겨주시면 후원자 리스트에 추가해드립니다.
<a href="https://www.buymeacoffee.com/dltkdgns00" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
[![dltkdgns00](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/dltkdgns00)

- 후원하실 때에 메시지에 Github 아이디를 남겨주시면 후원자 리스트에 추가해드립니다.

### 후원자 리스트

<table>
<tr>
<th>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "dltkdgns00 <[email protected]>",
"license": "MIT",
"publisher": "dltkdgns00",
"version": "1.1.5",
"version": "1.2.0",
"engines": {
"vscode": "^1.80.0"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
},
{
"command": "BOJ-EX.runTestCase",
"title": "BOJ: Run TestCase"
"title": "BOJ: Run Test Case"
},
{
"command": "BOJ-EX.pushToGithub",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/runTestCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export async function runTestCase(context: vscode.ExtensionContext) {
await runTest(sp.sampleInputs[i], sp.sampleOutputs[i], i);
}

const postMessage1 = centerText(` 채점 종료 `, maxWidth);
const postMessage1 = centerText(` 채점 종료 `, maxWidth - 2);
const postMessage2 = `결과 창은 1분 뒤에 닫힙니다.`;

outputChannel.appendLine(``);
Expand Down

0 comments on commit 22edef5

Please sign in to comment.