-
Notifications
You must be signed in to change notification settings - Fork 0
Extract instrumentation package #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f253462
refactor: extract ast javascript from javascript package
dstallenberg c222e08
test: change test name
dstallenberg 8cc04a5
refactor: extract instrumentation package
dstallenberg 1e38be5
test: add example test
dstallenberg fc31ab4
test: add example test case
dstallenberg 3e5e19c
chore: update gitignore
dstallenberg a8f4237
chore: resolve PR comments
dstallenberg 3ab836b
chore: merge branch '105-extract-ast-visitor-package' into 75-extract...
dstallenberg 41a5cfa
docs: fix notice header
dstallenberg 1605718
docs: fix readme header
dstallenberg ae681b8
feat: fix dependency versions
dstallenberg ceb9b99
test: change example test case to not fail
dstallenberg 14b9f8f
chore: merge branch '105-extract-ast-visitor-package' into 75-extract...
dstallenberg 0147edc
chore: fix merge conflicts
dstallenberg b2d89ba
chore: fix merge conflicts
dstallenberg 75d2ffe
chore: remove .ds_store file
dstallenberg 63489e2
chore: fix merge conflicts
dstallenberg fef6183
chore: fix merge conflicts
dstallenberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SynTest Framework - SynTest Javascript | ||
Copyright 2020-2023 Delft University of Technology and SynTest contributors | ||
|
||
This product includes software developed at | ||
Delft University of Technology (http://www.tudelft.nl/). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Instrumentation library for JavaScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2020-2023 Delft University of Technology and SynTest contributors | ||
* | ||
* This file is part of SynTest Framework - SynTest Javascript. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
export * from "./instrumentation/Instrumenter"; | ||
export * from "./instrumentation/Visitor"; | ||
export * from "./instrumentation/VisitState"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../../tsconfig-base.json", | ||
"compilerOptions": { | ||
"outDir": "../dist", | ||
"rootDir": ".", | ||
"composite": true | ||
}, | ||
"include": ["**/*.ts"] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "@syntest/instrumentation-javascript", | ||
"version": "0.0.1", | ||
mitchellolsthoorn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"description": "SynTest Instrumentation JavaScript is a library for instrumenting JavaScript code", | ||
"keywords": [ | ||
"syntest", | ||
"abstract-syntax-tree" | ||
], | ||
"homepage": "https://www.syntest.org", | ||
"bugs": { | ||
"url": "https://github.com/syntest-framework/syntest-javascript/issues" | ||
}, | ||
"license": "Apache-2.0", | ||
"contributors": [ | ||
"Annibale Panichella", | ||
"Mitchell Olsthoorn", | ||
"Dimitri Stallenberg" | ||
], | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"/dist", | ||
"/NOTICE", | ||
"README.md" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/syntest-framework/syntest-javascript.git" | ||
}, | ||
"scripts": { | ||
"build": "tsc --build", | ||
"build:watch": "tsc --build --watch", | ||
"clean": "rm -rf .nyc_output dist node_modules", | ||
"clean:dist": "rm -rf dist", | ||
"format": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --write .", | ||
"format:check": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --check .", | ||
"lint": "eslint --config ../../.eslintrc.json --ignore-path ../../.eslintignore .", | ||
"lint:fix": "eslint --config ../../.eslintrc.json --ignore-path ../../.eslintignore . --fix", | ||
"test": "mocha --config ../../.mocharc.json", | ||
"test:coverage": "nyc --reporter=text --reporter=html mocha --config ../../.mocharc.json", | ||
"test:coverage:ci": "nyc --reporter=lcovonly mocha --config ../../.mocharc.json --reporter json --reporter-option output=test-results.json", | ||
"test:watch": "mocha --config ../../.mocharc.json --watch" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "7.20.12", | ||
"@syntest/ast-javascript": "*" | ||
}, | ||
"devDependencies": { | ||
"@types/babel__core": "7.20.0" | ||
}, | ||
"engines": { | ||
"node": ">=10.24.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as chai from "chai"; | ||
import { Instrumenter } from "../lib"; | ||
const expect = chai.expect; | ||
|
||
/** | ||
* This test is only added such that the github action does not fail. | ||
*/ | ||
describe("example test", () => { | ||
it("test", async () => { | ||
new Instrumenter(); | ||
expect(true); | ||
}); | ||
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../../tsconfig-base.json", | ||
"files": [], | ||
"include": [], | ||
"references": [{ "path": "lib/" }] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.