-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Test Tour: Angular 2 #23895
Comments
ConfigThe quick start doesn't compile into a separate build directory, as a consequence the explorer is cluttered with derived resourced for "files.exclude": {
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": true
}, These settings are not trivial to configure. One idea would be that the TS extension detects this setup and prompts the user whether they want to exclude deriver |
Language Service
|
Tslint taskTslint setup with the vsocde-tslint extension works out of the box. The quickstarter bundles its own tslint extension. Configuration: setting up a task that runs tslint with a problem matcher. Using {
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"showOutput": "always",
"suppressTaskName": true,
"tasks": [
{
"taskName": "install",
"args": ["install"]
},
{
"taskName": "update",
"args": ["update"]
},
{
"taskName": "test",
"args": ["run", "test"]
}
]
} Adding one for tslint with a problem matcher: {
"taskName": "lint",
"args": ["run", "lint"],
"problemMatcher": "$tslint4"
} Would be nice to get Intellisense for variables after Tslint4 problemmatcher doesn't handle verbose output properly: https://github.com/Microsoft/vscode-tslint/issues/188 Could make it work when disabling the verbose output and overwriting the
|
Debugging Karma TestsKarma Test Running. Just works and is neat, triggered using file watching. Below I forced to create a test failure Setting up debugging for Karma test run Added the following to karma.conf.js browsers: ['ChromeDebugging'],
customLaunchers: {
ChromeDebugging: {
base: 'Chrome',
flags: ['--remote-debugging-port=9333']
}
},
{
"type": "chrome",
"request": "attach",
"name": "Attach Karma Chrome",
"address": "localhost",
"port": 9333,
"pathMapping": {
"/": "${workspaceRoot}/",
"/base": "${workspaceRoot}/"
}
}
@roblourens is this be documented somewhere? |
Notes from our test tour. Neither @mjbvz nor I had any angular experience. Angular Starter KitSetup
Debug
Tasks
Editing & Test Running
General
Using the Angular CLI
|
@egamma with the new extension story the tslint task should come from the tslint extension. The core should IMO not parse the package.json and should add any tslint tasks. |
Closing since we've complete the test tour. We've already opened a few issues to track discovered bugs and for a few feature requests, and feel free to open additional ones to track findings of this test tour |
see #23385 for the theory.
Angular quick starter: https://github.com/angular/quickstart
Extensions:
Implement & run some protractor tests.
The text was updated successfully, but these errors were encountered: