Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Janaka A 6a4060fda7 UPDATE: launch.json 2018-06-14 01:07:00 +01:00
Janaka Abeywardhana fe33a07d27 Merge in latest upstream/master 2018-05-15 22:02:32 +01:00
akshita31 3d0e255892 Add "Launch Unit Test" option (#2180) 2018-04-11 20:10:25 -07:00
Janaka A 1aa5259f9b Fix: based on comments in PR #2053
- remove isDefualt property from target interface
- move is-default logic from resourcesToLaunchTargets() to autostart()
- refactor autostart() target logic and comments
- rename test .NET solution files
2018-04-07 18:46:40 +01:00
Janaka A 7d2b1ab8b1 Merge upstream master 2018-04-07 14:30:52 +01:00
Piotr Puszkiewicz ed60379138
Test the vsix, not the build layout (#2156)
The VSCode C# Extension build process follows the VS Code docs and runs tests directly inside of its repo root. This unfortunately gives a false sense of security because bugs can be introduced during VSIX packaging [particularly due to missing content in node_modules or excluded via .vscodeignore].

This change addresses this problem by moving our CI tests to execute the VSIX instead of the build's intermediate artifacts. Specifically:

build the vsix
unpackage the vsix
instrument the unpackaged vsix
run tests with VS Code Host pointing to the unpackaged vsix
This makes our CI tests ~= to the user's runtime experience and will greatly help us with size reduction efforts.

To support this change, I also moved our build system from package.json to Gulp. This makes the build scripts significantly easier to understand, provides intellisense for build scripts, and build-time type checking for their contents.

I also strengthened the repo's use of .vscodeignore by creating a copy of the file for each scenario [online packages and offline packages]. The new gulp packaging scripts take advantage of these files to produce packages with predictable contents regardless of when packaging occurs. [small caveat, @akshita31 will be adding a test that validates that net-new content does not start sneaking into the vsix package].
2018-04-06 14:17:17 -07:00
Piotr Puszkiewicz 007bc0e985
Add product-wide code coverage + codecov.io integration (#2101)
Add product-wide code coverage + codecov.io integration

Several new scripts were added:

npm run cov:instrument: rebuilds your sources, then instruments them for coverage. Subsequent 

npm run test will generate coverage data into the .nyc_output directory

npm run cov:merge-html: merges all reports from .nyc_output and puts a locally viewable coverage report into coverage directory
2018-03-12 14:14:00 -07:00
Janaka A de1a8d2608 Refactor: replace deprecated ${workspaceRoot} with ${workspaceFolder} 2018-02-18 19:55:24 +00:00
Janaka A 5c7d70ac12 Merge: latest origin master 2018-02-18 18:40:51 +00:00
Janaka A e0edf51833 Fix: up launch config and gitignore
- tweak bin and obj exlusion
- refactor lauch config
2018-02-18 18:12:20 +00:00
Sebastian Pfliegel 7492c41f73 Typo in tasks.json (#1945) 2018-01-03 17:37:10 -05:00
Piotr Puszkiewicz a7ef548e55 Update devDependencies to latest
Update to tslint better enforces linter rules during build. I had to clean up some source content to permit this update.

I don't have sufficient confidence in existing tests to update runtime dependencies. This is still a todo.
2017-11-17 01:08:27 -08:00
Dustin Campbell fa293d2efe Disable .NET restore warnings now that we have C# project test assets 2017-11-07 09:44:28 -08:00
Piotr Puszkiewicz 10cbfefecf Add test asset: single csproj 2017-11-06 13:25:39 -08:00
Piotr Puszkiewicz 72b3fcffc5 Add test asset: slnWithCsproj 2017-11-06 13:25:39 -08:00
Piotr Puszkiewicz 82a6aeef34 Unit Test Refactor
Move unit tests into their own folder. Prepare scripts for unit + integration tests.
2017-11-06 13:25:39 -08:00
Peter Blazejewicz 6540859654 Switch from deprecated outDir to outFiles
This commit updates task configuration to use current
configuration keys and to limit number of warnings displayed in
VSCode itself.

Similar one:
Microsoft/vscode-generator-code#59

Thanks!
2017-03-18 12:21:25 +01:00
Dustin Campbell 48489392b9 Update 'test' task to print message describing how to run tests and delete gulp task for running tests
Since we use VS Code's infrastructure for running tests (allowing us to access VS Code objects inside tests), the right way to run tests inside VS Code is to launch the debugger with the 'Launch Tests' configuration. At the command-line, the 'npm test' command runs tests. However, that downloads a build of VS Code to run the tests, which doesn't support being launched while other instances of VS Code or open.
2017-02-06 09:00:12 -08:00
Dustin Campbell 1e262ce4f1 Update build task to launch "npm run compile"
This uses the new tasks.json support in VS Code 1.9 to allow tasks to run different commands. So, now you should be able to build with <kbd>Cmd+Shift+B</kbd> in VS Code.
2017-02-06 06:55:21 -08:00
Dustin Campbell 58cabb79be Set extension path during extension activation 2016-10-26 07:52:01 -07:00
Dustin Campbell 94ca7e7323 Clean up npm scripts and start running tests
Since the repo started, we've had a single NPM script that ran on postinstall. All this did was run the VS Code install
script and then launch tsc. Now, postinstall just runs the VS Code install script. The idea here is that install should
really just lay down dependencies, not compile code. Compilation is split off into a separate script.

Here are the new npm scripts:

* `postinstall`: As described above, this now just runs the VS Code install script after `npm install`.
* `compile`: Runs the VS Code compile script to transpile TypeScript to JavaScript. Run this with `npm run compile`.
* `watch`: Runs the VS Code compile script with the '-watch' flag to transpile TypeScript to JavaScript, and then
watch for file changes and incrementally compile. Run this with `npm run watch`.
* `test`: Runs the tests with Mocha. Note: This will only run tests that are already transpiled to JavaScript. Run with
`npm test`.

* Unit tests can be written in the 'test' folder. See 'test/sanity.tests.ts' for an example.
* The launch.json has been updated to allow debugging of unit tests with the "Launch Tests" configuration.
* The "test" task is now configured so that you can use the "Tasks: Run Test Task" command in VS Code.

* Whitespace is a bit out of control. I've made an executable decision that the repo should have spaces with an indent
size of 4. This is now added to the settings.json.
* The 'out' folder is now excluded in settings.json so you won't see it show up in your directory tree.
* The 'node_modules' folder is now excluded from search. This has been bothering me for awhile.
2016-09-01 08:11:11 -07:00
Dustin Campbell 9170e92270 Increment version and fix launch.json 2016-02-26 12:27:29 -08:00
Erich Gamma 45f4cbed04 Enable tslint 2016-01-17 20:48:38 +01:00
Johannes Rieken 6baa78258e Happy Coding! 2015-12-03 11:25:00 +01:00