-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Change SpecRunner to run more than one suite, fix issues in tests #3334
Conversation
…sk. Fix bug in NativeFileSystem where an empty dir will list the entire disk contents.
@@ -156,7 +156,8 @@ define(function (require, exports, module) { | |||
|
|||
// Prevent adding doc to working set | |||
docToShim._handleEditorChange = function (event, editor, changeList) { | |||
this.isDirty = true; | |||
var wasDirty = this.isDirty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like wasDirty
is unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Copy paste error. Thanks.
@@ -99,7 +99,7 @@ define(function LiveDevelopment(require, exports, module) { | |||
"edit" : require("LiveDevelopment/Agents/EditAgent") | |||
}; | |||
|
|||
var launcherUrl = window.location.href.replace(/\/index.html.*/, "") + "/LiveDevelopment/launch.html"; | |||
var launcherUrl = window.location.href.replace(/\/(src\/index.html|test\/SpecRunner.html).*/, "") + "/src/LiveDevelopment/launch.html"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very familiar with the LiveDevelopment code, but I'm not clear about the addition of "src/" for the cases that are not the SpecRunner. This is used in the real builds of Brackets, right? (which I presume don't have src directories?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grr...you're right. I'll fix, thanks.
…tion timeout in unit test.
…ets into jasonsanjose/fix-live-dev-ci
Looks good to me. The new category handling (and multiple suite support) in the specrunner is much nicer than the old code there. |
Change SpecRunner to run more than one suite, fix issues in tests
(extensions/default) extensions show up in the spec running UI.
* origin/master: (37 commits) Fix unit tests to account for 2feef29 update unit tests now that shell mode is a default language Fixes after second review remove extra StringUtils use emdash on mac only add licenses Fixes after first review Fix after review A bit cleanup revert change to unit test fixture again revert change to unit test fixture It now passes editor as a parameter using run and all the tests run in one window Fixes after second review Collect style tags the same way as we collect script tags. ie. collect everything up to the end tag in one step. Fixes after review Correct fix for gutter padding issue in #3211 Fix running dev & user extension unit tests. After pull #3334 only core (extensions/default) extensions show up in the spec running UI. keep html title for in-browser. update unit tests. Fixed replacement when currently in Entity Minor text fixes ... Conflicts: src/document/DocumentCommandHandlers.js src/extensions/default/RecentProjects/main.js test/spec/DocumentCommandHandlers-test.js
After this change, instead of running "all", the Jenkins machines will run
grunt test-integration --suite="unit,extension"
only.I made some attempts to fix issues in the integration suite, but I wasn't able to fix all issues, particularly intermittent NodeConnection and LiveDevelopment issues that seem to only reproduce on the build machines.
A short summary:
readEntries
on an empty path would read the entire diskThere also appears to be a memory leak when running unit tests that I did not have time to pin down. I'd like to get at least these changes in ASAP in order to get Jenkins running again.