Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzapasnik committed Jan 25, 2021
0 parents commit c8464d9
Show file tree
Hide file tree
Showing 23 changed files with 2,497 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out
dist
node_modules
.vscode-test/
*.vsix
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
out/
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: true,
printWidth: 120,
};
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
34 changes: 34 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": true
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
12 changes: 12 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.vscode/**
.vscode-test/**
out/test/**
src/**
.gitignore
.yarnrc
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
.yarn/
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log

All notable changes to the vscode-elixir-test-explorer extension will be documented in this file.

## v0.1.0 - 25 January 2021

Initial release
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Elixir Test Adapter

## Features

Shows Elixir tests in a sidebar.

**NOTE:** It also works with a multi-workspace environment.

## Settings

This extension contributes the following settings:

- `elixirTestExplorer.enable`: enable/disable this extension
- `elixirTestExplorer.projectDir`: specify mix directory in case Elixir project resides in a subdirectory

![Elixir Test Explorer](./images/screenshot.png)

## Changelog

See Changelog [here](CHANGELOG.md)

## Issues

Submit the [issues](https://github.com/adamzapasnik/vscode-elixir-test-explorer/issues) if you find any bug or have any suggestion.

## Contribution

Fork the [repo](https://github.com/adamzapasnik/vscode-elixir-test-explorer) and submit pull requests.
Binary file added images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"name": "elixir-test-explorer",
"displayName": "Elixir Test Explorer",
"description": "Run Elixir tests in the Sidebar of Visual Studio Code",
"icon": "images/icon.png",
"author": "Adam Zapaśnik <[email protected]>",
"publisher": "adamzapasnik",
"version": "0.1.0",
"engines": {
"vscode": "^1.52.0"
},
"license": "MIT",
"homepage": "https://github.com/adamzapasnik/vscode-elixir-test-explorer",
"repository": {
"type": "git",
"url": "https://github.com/adamzapasnik/vscode-elixir-test-explorer"
},
"bugs": {
"url": "https://github.com/adamzapasnik/vscode-elixir-test-explorer/issues"
},
"categories": [
"Other"
],
"keywords": [
"test",
"testing",
"exunit",
"elixir",
"test explorer",
"test adapter"
],
"activationEvents": [
"onLanguage:elixir",
"workspaceContains:**/mix.exs",
"workspaceContains:**/*.ex"
],
"main": "./out/main.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Elixir Test Explorer configuration",
"properties": {
"elixirTestExplorer.enable": {
"type": "boolean",
"default": true,
"scope": "resource",
"description": "Control whether or not Elixir Test Explorer is enabled."
},
"elixirTestExplorer.projectDir": {
"scope": "resource",
"type": "string",
"description": "Project dir",
"default": ""
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.21",
"@types/vscode": "^1.52.0",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.4.1"
},
"extensionDependencies": [
"hbenl.vscode-test-explorer"
],
"dependencies": {
"vscode-test-adapter-api": "^1.9.0",
"vscode-test-adapter-util": "^0.7.1"
}
}
Loading

0 comments on commit c8464d9

Please sign in to comment.